diff --git a/Jenkinsfile b/Jenkinsfile index 9865dee..859b46b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,10 @@ node { - echo "SUCCESS ON master" + try { + // do something that fails + sh "echo YEP" + currentBuild.result = 'SUCCESS' + } catch (Exception err) { + currentBuild.result = 'FAILURE' + } + echo "RESULT: ${currentBuild.result}" }