pipeline ignore error

2019-06-08 Thread Ivan Fernandez Calvo
I used to do it with the catchError step see the documentation for further details https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving em

Re: pipeline ignore error

2019-06-07 Thread Quang Truong
Not sure if I understand you correctly, just do try catch like java code Scripted: stage ('abc') { try { sh "rm file' } catch (e) { echo "Error deleting file!" } } Declarative: stage ('abc') { script { try { sh "rm file' } catch (e) { echo "Error deleting file

pipeline ignore error

2019-06-05 Thread Renato Goncalves
Hello guys, do you have a simple example of an ignore error in a stage (pipeline) ? -- This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient and have received this em