| Is it correct, that the following example cannot be implemented with the current features, as described in https://jenkins.io/blog/2018/07/02/whats-new-declarative-piepline-13x-sequential-stages/ ?
pipeline {
agent none
stages {
stage("sequential-1") {
agent { label "linux" }
stages {
stage("first") { }
// ...
}
}
stage("sequential-2") {
agent { label "windows" }
stages {
stage("second") { }
// ...
}
}
stage ('parallel') {
parallel {
stage("third") {
// enforce usage of same linux agent as in "sequential-1"
}
stage('fourth') {
// enforce usage of same windows agent as in "sequential-2"
}
}
}
}
}
If there is a way to enforce the usage of the previously used node/workspace in the stages "third" and "fourth", without giving up the parallelization, I would appreciate your suggestions. Thanks! |