码迷,mamicode.com
首页 > 其他好文 > 详细

Jenkins Pipelines Summary

时间:2019-03-20 00:46:14      阅读:116      评论:0      收藏:0      [点我收藏+]

标签: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
                    }
                }
            }
        }
    }
}

 

Jenkins Pipelines Summary

标签:step   stage   special   output   man   gis   summary   jenkins   tag   

原文地址:https://www.cnblogs.com/sayiqiu/p/10562303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!