-
Bug
-
Resolution: Unresolved
-
Major
-
None
Hello,
thanks for this feature - https://jenkins.io/blog/2017/09/25/declarative-1/
Parallel stages with declarative pipeline.
We wanted to try parallel, node, milestone together in the particular stage.
And we tried the below :
pipeline { agent none stage('Tests') { when { branch 'declarative-pipeline' } parallel { stage('One') { agent any steps { lock(resource: "${env.JOB_NAME}/10", inversePrecedence: true) { milestone 10 node() { deleteDir() execute tests } } } } } } }
but it does not execute this stage and there will be no syntax errors. could you please let me know what is missing in the above example?
Regards,
Ashwin
The agent none on the top-level stage shouldn't be there, but it should also be triggering an error. I'm also not sure what your emptyNode() is?