I understand the basic difference between the Declarative and scripted pipeline in Jenkins 2.0.
when I try to implement the parallel deployment on different nodes, it seems declarative is not working I guess.
Question
========
1. can you please confirm running the parallel task in the different node is supported or not in both pipeline model.
2. if it works the syntax to do that in the declarative and scripted pipeline.
My declarative pipeline
pipeline {
agent any
stages {
stage('build') {
agent { label 'testnode' }
echo 'build process'
}
stage('Deployment') {
steps {
parallel (
"Deployment1": {
agent { label 'server01'}
echo 'deployment in server1'
},
agent { label 'server02 }
echo 'deployment in server2'
)
}
}
}
}
the above example is not working, if i put the agent in stage level it is working but stream level it is not working, basically, i like to understand parallel execution in the different node is supported or not on both pipelines.
Thanks in Advance,