Hi

In a conventional Jenkins job, my understanding is that the job will fail if 
the last command of a shell build step indicates an error.

I am now experimenting with pipeline jobs and have something like:

node {
    stage('Checkout') {<snip>}

    sh returnStatus: true, script: '''cd software
                                      make cleanall
                                      make '''
}

I am not sure what is happening here.


1)      Will the same rule apply that the job will fail if the last command of 
the sh step fails?

2)      What is 'returnStatus: true, script' doing?


Best regards

David

-- 
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/ebb7c18a1b2740258af7e7e91deffce8%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to