Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: workflow-plugin
Created: 05/Feb/15 5:27 PM
Description:

Hi,

I am using the workflow plugin to organize my builds on jenkins.

In my script I currently must run many "Shell Script" steps.
Most of the scripts produce some output that I should catch and use in my further steps.

Currently I handle this as following:

sh "xmlstarlet sel -N m=http://maven.apache.org/POM/4.0.0 -t -v \'/m:project/m:version\' pom.xml > .version"
def ver =  readFile '.version'

But I assume there is a better (undocumented?) way available. Does 'sh' step support more parameters?

By the way, what does 'sh' step returns? Is it shell script exit code?

Thank you in advance

Project: Jenkins
Priority: Minor Minor
Reporter: Yuriy Kryshchuk
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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/d/optout.

Reply via email to