Re: groovy commands and description.

2017-04-28 Thread Kenneth Johansson
On 2017-04-27 17:52, Mark Waite wrote: On Thu, Apr 27, 2017 at 9:36 AM Kenneth Johansson mailto:kenneth.johans...@inteno.se>> wrote: On 2017-04-27 17:22, Mark Waite wrote: Refer to https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script for

Re: groovy commands and description.

2017-04-27 Thread Mark Waite
On Thu, Apr 27, 2017 at 9:36 AM Kenneth Johansson < kenneth.johans...@inteno.se> wrote: > On 2017-04-27 17:22, Mark Waite wrote: > > Refer to > https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script > for > the details. > > How did you find that ? > > I used a

Re: groovy commands and description.

2017-04-27 Thread Kenneth Johansson
On 2017-04-27 17:22, Mark Waite wrote: Refer to https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script for the details. How did you find that ? The specific question you're asking is answered by an example at https://jenkins.io/doc/pipeline/examples/#git

Re: groovy commands and description.

2017-04-27 Thread Mark Waite
Refer to https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script for the details. The specific question you're asking is answered by an example at https://jenkins.io/doc/pipeline/examples/#gitcommit . You need " returnStdout: true". Mark Waite On Thu, Apr 27,

groovy commands and description.

2017-04-27 Thread Kenneth Johansson
How do I find out what functions exist that can be used from a groovy script and how to use them ?? like how to get the shell script output from a shell command into a variable. so the sh command is in basically all examples written as "sh 'command'" but there is another way also so that it