修正apex的流水线提交名和时间
This commit is contained in:
@@ -227,11 +227,9 @@ pipeline {
|
||||
when { expression { return params.ROLLBACK_VERSION == false } }
|
||||
steps {
|
||||
script {
|
||||
def user = currentBuild.getBuildCauses()[0].userName ?: "SYSTEM"
|
||||
def now = sh(script: "date '+%Y-%m-%d %H:%M:%S'", returnStdout: true).trim()
|
||||
env.CHANGE_MSG = """
|
||||
jenkins执行人: ${user}
|
||||
修改时间: ${now}
|
||||
jenkins执行人: ${env.ACTUAL_USER}
|
||||
修改时间: ${env.currentTime}
|
||||
旧镜像: ${OLD_IMAGE_NAME}
|
||||
新镜像: ${IMAGE_FULL_NAME}
|
||||
部署对象: ${Deployment_name}
|
||||
|
||||
Reference in New Issue
Block a user