Reputation: 201
I have a Jenkins job and it seems to have perforce set up correctly. However, when I tried to use p4 command in the execute shell of jenkins, got an error "Perforce password (P4PASSWD) invalid or unset". Following is the execute shell and log, what should I do to make it work?
Execute shell: p4 -P %P4TICKET% edit ...
Log:
[JobName] $ /usr/bin/p4 login -a -p
...
Perforce password (P4PASSWD) invalid or unset.
Upvotes: 3
Views: 3429
Reputation: 612
Try ${P4TICKET} instead of %P4TICKET%. "%VARIABLE%" is strictly a Windows convention, and doesn't work in unix for referencing variables.
Upvotes: 1