having a valid ticket on the machine and using the ticket instead of the
password works well for me.


On Mon, Jul 15, 2013 at 12:25 PM, <[email protected]> wrote:

> We have been using the Perforce plugin for quite some time and usually
> when I see that error it is because the password is not correct.  I am
> using a slightly older version of the plugin (1.3.19).  You may try to
> check the box to expose the P4PASSWD in the environment and then check to
> see if it is getting set properly.  You may also want to check the P4TICKET
> in the environment and make sure it is valid.
>
> Mark
>
>
> On Monday, July 15, 2013 8:42:56 AM UTC-6, Alon Herbst wrote:
>>
>> We have a Jenkins 1.522 server. We need an SCM integration with Perforce.
>> In order to connect Jenkins to the Perforce repository we deployed the
>> Perforce plugin in Jenkins, version1.3.24.
>> We configured a single Perforce installation to point on an existing
>> installation of perforce 12.1. See: Perforce installations.JPG
>> We created a new job and configured it to use Perforce. The settings
>> appear in the  attached Jenkins job configuration.jpg.
>> For some reason, the job fails to check out the code due to some issue
>> with password: Perforce password (P4PASSWD) invalid or unset. Full console
>> output is attached in the end.
>> I tried to use the put my regular password and a perforce login ticket in
>> the Password property but did get any progress.
>> Do you have any suggestions on what is wrong here? Any other methods to
>> integrate Perforce and Jenkins?
>>
>> Here is the full console output:
>>
>> Building remotely on vin-slave2-orch in workspace
>> /home/jenkins/vin-slave2-orch-**root/workspace/XXX-api-**adapter-ob
>> Using remote perforce client: XXX-api-adapter-ob-workspace-**501763112
>> [XXX-api-adapter-ob] $ /build/toolchain/lin64/**perforce-r12.1/p4
>> workspace -o XXX-api-adapter-ob-workspace-**501763112
>> [XXX-api-adapter-ob] $ /build/toolchain/lin64/**perforce-r12.1/p4 login
>> -a -p
>> [XXX-api-adapter-ob] $ /usr/bin/p4 login -a -p
>> [XXX-api-adapter-ob] $ /build/toolchain/lin64/**perforce-r12.1/p4
>> workspace -o XXX-api-adapter-ob-workspace-**501763112
>> 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:**385)
>>  at com.tek42.perforce.parse.**AbstractPerforceTemplate.**
>> getPerforceResponse(**AbstractPerforceTemplate.java:**294)
>>  at com.tek42.perforce.parse.**Workspaces.getWorkspace(**
>> Workspaces.java:61)
>>  at hudson.plugins.perforce.**PerforceSCM.**getPerforceWorkspace(**
>> PerforceSCM.java:1503)
>>  at hudson.plugins.perforce.**PerforceSCM.**getPerforceWorkspace(**
>> PerforceSCM.java:1464)
>>  at hudson.plugins.perforce.**PerforceSCM.checkout(**
>> PerforceSCM.java:809)
>>  at hudson.model.AbstractProject.**checkout(AbstractProject.java:**1387)
>>  at hudson.model.AbstractBuild$**AbstractBuildExecution.**
>> defaultCheckout(AbstractBuild.**java:676)
>>  at jenkins.scm.**SCMCheckoutStrategy.checkout(**
>> SCMCheckoutStrategy.java:88)
>>  at hudson.model.AbstractBuild$**AbstractBuildExecution.run(**
>> AbstractBuild.java:581)
>>  at hudson.model.Run.execute(Run.**java:1593)
>>  at hudson.model.FreeStyleBuild.**run(FreeStyleBuild.java:46)
>>  at hudson.model.**ResourceController.execute(**
>> ResourceController.java:88)
>>  at hudson.model.Executor.run(**Executor.java:247)
>> ERROR: Unable to communicate with perforce. Perforce password (P4PASSWD)
>> invalid or unset.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to