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'*
*},*

*"Deployment2": {*
*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,


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c4d87144-4252-4589-ab61-dc8fab2f0f33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to