-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: workflow-cps-plugin
Hello,
When running the following pipeline...
pipeline {
agent none
stages {
stage('Test') {
parallel {
stage('Fast stage') {
steps {
echo 'Done already'
}
}
stage('Slow stage') {
steps {
echo 'Please interrupt now!'
sleep 600
}
}
}
}
}
}
... and interrupting the build programmatically with a success status while the "Slow stage" is still in progress, e.g. with the following snippet in Jenkins' script console...
def build = Jenkins.instance.getItemByFullName('path/to/the/job').lastBuild def cause = new org.jenkinsci.plugins.pipeline.milestone.CancelledCause('testing') def executor = build.executor executor?.interrupt(hudson.model.Result.SUCCESS, cause)
... the build is aborted but its status is set to aborted instead of success.
This behavior could be related to JENKINS-31953.
- relates to
-
JENKINS-31953 Stopping build running parallel branches can doubly deliver stop
-
- Open
-