description setter
Build Name and Description Setter
Build User Vars Plugin
这三个插件最好都安装上
系统管理-》全局安全配置-》标记格式器
选择 SafeHtml
pipeline {
agent any
parameters {
string(name: 'BRANCHNAME', defaultValue: 'develop', description: '代码分支名称')
}
environment {
JENKINS_NODE_COOKIE = 'dontKillMe'
project_path = '/home/work/www/miap_source_code'
ip_info = 'http://xx.xxx.xxx.xx:9000/'
}
stages {
stage("任务参数检测") {
steps {
println "JobName: " + env.JOB_NAME
println "BuildNumber: " + env.BUILD_NUMBER
println "BranchName: " + "${BRANCHNAME}"
wrap([$class: 'BuildUser']){
buildDescription "jump to pgyer"
}
script {
echo "任务参数检测"
}
}
}
stage("清理测试环境") {
steps {
script {
dir('D:\\cproject\\'){
echo "删除之前代码库代码"
}
}
}
}
stage("下载平台代码") {
steps {
script {
dir('D:\\cproject\\'){
echo "开始克隆代码"
}
}
}
}
}
}
点击跳转到百度