Quantcast

Getting ERROR Perforce password (P4PASSWD) invalid or unset.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Getting ERROR Perforce password (P4PASSWD) invalid or unset.

Harihar Pai
This post has NOT been accepted by the mailing list yet.
Hello All,

Its bit urgent I expect a quick reply . I havr configured hudson on windows machine and installed p4 plugin. When I try to sync some files p4 sync -n //root/***/... . I get the error P4Passwd is invalid or unset. Can some me tell me how to go about of it.

Note :  As a part of testing I am using p4test server.

Thank you,
 Hari
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting ERROR Perforce password (P4PASSWD) invalid or unset.

Harihar Pai
This post has NOT been accepted by the mailing list yet.
Got the issue resolved:

If you have enabled ticket based authentication you should do two things

1) Login as p4 login -a to have generic ticket id

2) Specify ticket id in password field instead 0f actual password

                                                                                                -Harihar N Pai
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting ERROR Perforce password (P4PASSWD) invalid or unset.

bicepjai
This post has NOT been accepted by the mailing list yet.
If you do a "env" in the Execute Windows Batch Command" section you can see a environment variable called P4TICKET set by Jenkins when it logins to perforce. This ticket can be used for performing p4 commands in this section. eg

p4 -P %P4TICKET% changes -s submitted -m 10
Loading...