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")
}
}
}
}