No idea if this is the canonical solution but I resolved the issue but
adding the following line to to the Script Content field in the Inject
environment variables setting. This way a ticket file is created on the
Jenkins Slave before every build. See attached screen-cap.

echo ${P4PASSWD} | p4 login -a

--Usman

On Tuesday, September 24, 2013, Daniel B <daniel.barb...@gmail.com> wrote:
> Did you ever resolve this? I'm seeing the same problem on a CentOS box.
> Thanks
>
> On Monday, 8 July 2013 12:22:01 UTC-4, Usman Ismail wrote:
>
> Both the job failing and succeeding are running on OSX boxes.
>
> On Monday, July 8, 2013 9:21:30 AM UTC-7, Usman Ismail wrote:
>
> The password is simple its just the user name that has the slash.
> Its running on an OSX box.
>
> On Monday, July 8, 2013 1:20:42 AM UTC-7, James Nord (jnord) wrote:
>
> Passwords with any shell special characters aren’t handled properly
(there is an open JIRA).
>
>
>
> So ‘\’ on Unix like OSs will want some escaping – try your password with
\\ instead of a single backslash – or put quotes around it.
>
>
>
> Is your other box which can perform releases a windows box?  That’s the
only reason I can think of that it works on one and not on another.
>
>
>
> /James
>
>
>
>
>
> From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On
Behalf Of Usman Ismail
> Sent: 06 July 2013 01:15
> To: jenkins...@googlegroups.com
> Subject: Unable to release project from a specific jenkins box using m2
release plugin and perforce SCM
>
>
>
> I am using the maven release plungin using the jenkins m2release plugin
and keep getting the error shouwn below.
>
> The username and password is correct as I have tested it on other
machines and also to get source from this jenkins box. The password only
fails on release and not at any other point.
>
> The only weird thing I can think off is that the user name has a '\' in
it but this does seem to the phase my other jenkins box which works
correctly.
>
> Is there anything I can do get a more detailed error message or debug
whats going on?
>
> [INFO]
> [INFO] --- maven-release-plugin:2.4:prepare (default-cli) @ cascade-proto
---
> [INFO] Verifying that there are no local modifications...
> [INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties,
**/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag
> [ERROR] CommandLineException Exit code: 1 - Perforce password (P4PASSWD)
invalid or unset.
>
> Command line was:p4 -d /opt/hudson_workspace01/jobs/JOB-NAME/workspace -p
perforceserver.com:1666 -u "AAAAAAAAA\bbbbbbbbb" -P *********** opened
//XXXXXXXXX/XXXXXX/XXXXXX-XXXXXXX/...
> org.codehaus.plexus.util.cli.CommandLineException: Exit code: 1 -
Perforce password (P4PASSWD) invalid or unset.
>
> Command line was:p4 -d /opt/hudson_workspace01/jobs/JOB-NAME/workspace -p
perforceserver.com:1666 -u "AAAAAAAAA\bbbbbbbbb" -P *********** opened
//XXXXXXXXX/XXXXXX/XXXXXX-XXXXXXX/...
> at
org.apache.maven.scm.provider.perforce.command.status.PerforceStatusCommand.readOpened(PerforceStatusCommand.java:116)
> at org.apache.maven.scm.provider.perforce.command.status.Perfor
>
> --
> You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/dMTw_FrSLcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

<<attachment: create ticket.png>>

Reply via email to