Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not A Defect
-
Jenkins 2.13, Pipeline 2.2.
Description
I am expecting that the following simple pipeline script finishes with status SUCCESS. Instead, it fails:
print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS'
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
I am expecting that the following simple pipeline script finished with status SUCCESS. Instead, it fails: {{print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS'}} |
I am expecting that the following simple pipeline script finished with status SUCCESS. Instead, it fails: print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS' |
Description |
I am expecting that the following simple pipeline script finished with status SUCCESS. Instead, it fails: print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS' |
I am expecting that the following simple pipeline script finishes with status SUCCESS. Instead, it fails: print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS' |
Description |
I am expecting that the following simple pipeline script finishes with status SUCCESS. Instead, it fails: print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS' |
I am expecting that the following simple pipeline script finishes with status SUCCESS. Instead, it fails: {noformat}print "Setting result to FAILURE" currentBuild.result = 'FAILURE' print "Setting result to SUCCESS" currentBuild.result = 'SUCCESS'{noformat} |
Resolution | Not A Defect [ 7 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | JNJira [ 173319 ] | JNJira + In-Review [ 210211 ] |
I guess this is as expected:
https://github.com/jenkinsci/jenkins/blob/213363d387736874f1d14d83e57347f757f3ed4f/core/src/main/java/hudson/model/Run.java#L462