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

Jenkins JIRA | Bin Yin | 2 years ago
  1. 0

    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

    Jenkins JIRA | 2 years ago | Bin Yin
    unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.
  2. 0

    [JENKINS-28367] perforce plugin don't support P4 ticket authentication - Jenkins JIRA

    jenkins-ci.org | 8 months ago
    unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.
  3. 0

    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

    Jenkins JIRA | 2 years ago | Bin Yin
    unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [perforce-plugin] (JENKINS-28367) perforce plugin don't support P4 ticket authentication

    Google Groups | 2 years ago | ybde...@gmail.com (JIRA)
    unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.<br />
  6. 0

    Jenkins Perforce plugin error: Perforce password (P4PASSWD) invalid or unset

    Google Groups | 3 years ago | Alon Herbst
    unset.com.tek42.perforce.PerforceException: Perforce password (P4PASSWD) invalid or unset.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. unset.com.tek42.perforce.PerforceException

      Perforce password (P4PASSWD) invalid or unset.

      at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse()
    2. com.tek42.perforce
      Workspaces.getWorkspace
      1. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:406)
      2. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:301)
      3. com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61)
      3 frames
    3. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1641)
      2. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602)
      3. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1265)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      2. hudson.model.Run.execute(Run.java:1718)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:89)
      5. hudson.model.Executor.run(Executor.java:240)
      5 frames