-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
-
Pipeline - April 2018
Currently with --, we set one or more stages to be executed in parallel but no "branches". Meaning that we cannot parallelise a sequence of stages.JENKINS-41334
Example:
pipeline {
agent none
stages {
stage('Parallel stuff') {
parallel 'branch 1' : {
// Sequencial stages
stage('Branch 1 stage 1'){
agent any
steps {
echo "In branch 1 stage 1"
}
}
stage('Branch 1 stage 2'){
agent none // With that kind of sequencial stage, we can change the agent to run on
steps {
sleep 30
}
}
}, 'branch 2': { // Parallel execution
stage('Branch 2 stage 1'){
agent any
steps {
echo "In branch 2 stage 1"
sleep 60
}
}
}
}
}
}
Blue ocean possible view:

- is duplicated by
-
JENKINS-43336 Allow locking multiple stages in declarative pipeline
-
- Closed
-
-
JENKINS-47163 Use same workspace or node in multiple stages in pipeline
-
- Closed
-
-
JENKINS-48422 Support parallel execution of sequence of stages
-
- Resolved
-
-
JENKINS-47532 Add possibility to run several stages 1-by-1 in a 'parallel' thread
-
- Resolved
-
-
JENKINS-39119 Can't lock nodes between stages
-
- Closed
-
- is related to
-
JENKINS-52084 Sequential stages post section does not execute in the expected context
-
- Closed
-
- relates to
-
JENKINS-39932 Support more arbitrary Pipeline definitions
-
- Closed
-
-
JENKINS-40986 Matrix structure for Declarative Pipeline
-
- Resolved
-
-
JENKINS-52025 I can edit my sequential declarative pipeline stages in the pipeline visualization plugin
-
- Open
-
-
JENKINS-49050 I can view my sequential declarative pipeline stages in the pipeline visualization plugin
-
- Closed
-
-
JENKINS-39119 Can't lock nodes between stages
-
- Closed
-
- links to