-
Type:
Improvement
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: pipeline-model-definition-plugin
I would like to be able to define a single agent and steps to "prepare" it for a series of parallel stages to run on it. So like this
stage('Test') {
agent {
label 'foo'
}
steps {
echo "prepare node for test stages"
}
parallel {
stage('Test 1') {
steps {
...
}
}
stage('Test 2') {
steps {
...
}
}
stage('Test 3') {
steps {
...
}
}
}
}
When I try to do that I get an error:
WorkflowScript: 176: Only one of "parallel", "stages", or "steps" allowed for stage "Test" @ line 176, column 9.
stage('Test') {
^