jenkins - stage inside parallel task? -
jenkins 2.74, pipeline plugin 2.5
i'm trying pipeline following :
pipeline stages stage steps parallel stage b
and i'm getting error below.
i can setup work ok if move stage b pipeline of own , use parallel/build job task.
but want have "single pipeline view" i.e. see steps in single page.
is there way either :
- model pipeline stages inside parallel ?
- provide single view on top of 2 pipelines, called via build job or similar?
any suggestions?
org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: workflowscript : 17: invalid step "stage" used - not allowed in context - stage step cannot used in declarative pipelines @ line 17, column 9. stage('b') { ^ 1 error @ org.codehaus.groovy.control.errorcollector.failiferrors(errorcollector.java:310) @ org.codehaus.groovy.control.compilationunit.applytoprimaryclassnodes(compilationunit.java:1085) @ org.codehaus.groovy.control.compilationunit.dophaseoperation(compilationunit.java:603) @ org.codehaus.groovy.control.compilationunit.processphaseoperations(compilationunit.java:581) @ org.codehaus.groovy.control.compilationunit.compile(compilationunit.java:558) @ groovy.lang.groovyclassloader.doparseclass(groovyclassloader.java:298) @ groovy.lang.groovyclassloader.parseclass(groovyclassloader.java:268) @ groovy.lang.groovyshell.parseclass(groovyshell.java:688) @ groovy.lang.groovyshell.parse(groovyshell.java:700) @ org.jenkinsci.plugins.workflow.cps.cpsgroovyshell.doparse(cpsgroovyshell.java:129) @ org.jenkinsci.plugins.workflow.cps.cpsgroovyshell.reparse(cpsgroovyshell.java:123) @ org.jenkinsci.plugins.workflow.cps.cpsflowexecution.parsescript(cpsflowexecution.java:516) @ org.jenkinsci.plugins.workflow.cps.cpsflowexecution.start(cpsflowexecution.java:479) @ org.jenkinsci.plugins.workflow.job.workflowrun.run(workflowrun.java:269) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:97) @ hudson.model.executor.run(executor.java:419)
finished: failure
Comments
Post a Comment