unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If the credential for job is P4 ticket auth, we cannot sync the source code from P4, and get the error below. But the non-ticket auth credential can be used to sync source code from P4 correctly. It seems current perforce plugin don't support P4 ticket authentication. ERROR: ---------------------------------------------------------------- [EnvInject] - Loading node environment variables. Building remotely on Slave31 (SlaveGroup3) in workspace C:\CI\workspace\Src-Main Using remote perforce client: Beacon-Src--Main--461461931 [Src-xxx] $ p4 workspace -o Beacon-Src-Main--461461931 [Src-xxx] $ p4 login -a -p [Src-xxx] $ p4 workspace -o Beacon-Src-Main--461461931 Caught exception communicating with perforce. Perforce password (P4PASSWD) invalid or unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset. at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:406) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:301) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1641) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907) at hudson.model.AbstractProject.checkout(AbstractProject.java:1265) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1718) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) ERROR: Unable to communicate with perforce. Perforce password (P4PASSWD) invalid or unset. Skipped archiving because build is not successful Sending e-mails to: xxx@xxx.com Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Finished: FAILURE
    via by Bin Yin,
  • If the credential for job is P4 ticket auth, we cannot sync the source code from P4, and get the error below. But the non-ticket auth credential can be used to sync source code from P4 correctly. It seems current perforce plugin don't support P4 ticket authentication. ERROR: ---------------------------------------------------------------- [EnvInject] - Loading node environment variables. Building remotely on Slave31 (SlaveGroup3) in workspace C:\CI\workspace\Src-Main Using remote perforce client: Beacon-Src--Main--461461931 [Src-xxx] $ p4 workspace -o Beacon-Src-Main--461461931 [Src-xxx] $ p4 login -a -p [Src-xxx] $ p4 workspace -o Beacon-Src-Main--461461931 Caught exception communicating with perforce. Perforce password (P4PASSWD) invalid or unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset. at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:406) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:301) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1641) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907) at hudson.model.AbstractProject.checkout(AbstractProject.java:1265) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1718) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) ERROR: Unable to communicate with perforce. Perforce password (P4PASSWD) invalid or unset. Skipped archiving because build is not successful Sending e-mails to: xxx@xxx.com Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Finished: FAILURE
    via by Bin Yin,
    • unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset. at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:406) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:301) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1641) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907) at hudson.model.AbstractProject.checkout(AbstractProject.java:1265) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1718) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Users with the same issue

    Unknown visitor1 times, last one,