build history

插件需求

Build Name and Description Setter

语法

pipeline {
options {
    buildDiscarder(logRotator(numToKeepStr: '15'))
    timestamps()
    timeout(time:1, unit:'HOURS')
}    
    agent 
        {label 'jnlp-slave'}
    stages {
        stage('set buildDescription') {
            steps {
                script {
                        buildName ("${JOB_NAME}-${env.BUILD_NUMBER}")
                        buildDescription ("部署环境: dev \n 代码分支:master")
                    }
                }
            } 
        }

posted @ 2022-04-05 21:43  等等马上就好  阅读(62)  评论(1编辑  收藏  举报