标签:step stage special output man gis summary jenkins tag
示例1:
pipeline{ agent {label "xxx"} // label is a special machine registered in Jenkins environment{ CLONE_TRAINER_TEST_CMD = ‘‘‘ cd $wksp // shell command ‘‘‘ START_TRAINER_TEST_CLIENT_CMD = ‘‘‘ // shell command ‘‘‘ } stages{ stage("xxx"){ // can define by yourself, it will display in the beginning of Jenkins output log parallel{ stage("xxx"){ // define by yourself agent {label "xxx"} // a special machine steps{ sh env.CLONE_TRAINER_TEST_CMD sh ‘‘‘ cd $wksp // shell command ‘‘‘ } } stage("xxx"){ agent {label "xxx"} steps{ // shell command } } } } } }
标签:step stage special output man gis summary jenkins tag
原文地址:https://www.cnblogs.com/sayiqiu/p/10562303.html