Hi, Did you try to surround your variable with quotes? Might be a bit tricky sometimes because of the multiple interpolations. Something like:
sh "mvn blah Dpassword='$password_param' " HTH Le 3 déc. 2015 8:36 PM, "Mark Bidewell" <[email protected]> a écrit : > In case anyone sees this, I will post my workaround. > 1) use writeFile to write the command-line to a file > 2) create a script that reads the file, and does a fork-exec using the > file contents as a command-line. > > On Monday, November 30, 2015 at 8:34:48 PM UTC-5, Mark Bidewell wrote: >> >> I am using Workflow to automate the Maven Release Plugin. Since Maven is >> not directly supported via workflow, I use the sh step to call Maven. One >> of the parameters this plugin takes is the password to use for checkins, >> however if passwords contain special characters, the "sh" step will fail >> due to shell interpretations. I was thinking I could get around this by >> doing an execute() in workflow but that will only execute on the master. >> In workflow, how can I execute a process on a slave without going though a >> shell? >> >> Thanks >> > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/37ba6d5f-243c-4bec-97ce-d19d06614b31%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/37ba6d5f-243c-4bec-97ce-d19d06614b31%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4joiHGP5pe56_ha%2B_TW%3DyDGMTP4GG687gCXzg6UswE-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
