Commit 09dbdf69 by chenweitao

发布文件修改

parent 0b893a58
...@@ -16,7 +16,7 @@ pipeline { ...@@ -16,7 +16,7 @@ pipeline {
} }
stages { stages {
stage('build') { stage('build') {
when { branch 'master' } when { branch 'master' }
steps { steps {
...@@ -24,12 +24,12 @@ pipeline { ...@@ -24,12 +24,12 @@ pipeline {
} }
post { post {
success { success {
sh "/usr/local/bin/workwechatctl -p ${env.JOB_NAME} -n 马黎滨 -c 项目编译成功进行下一阶段" sh "/usr/local/bin/workwechatctl -p ${env.JOB_NAME} -n 陈炜涛 -c 项目编译成功进行下一阶段"
} }
failure { failure {
step([$class: 'Mailer', step([$class: 'Mailer',
notifyEveryUnstableBuild: true, notifyEveryUnstableBuild: true,
recipients: "malibin@zhiweidata.com", recipients: "chenweitao@zhiweidata.com",
sendToIndividuals: true]) sendToIndividuals: true])
} }
} }
...@@ -38,7 +38,7 @@ pipeline { ...@@ -38,7 +38,7 @@ pipeline {
when { branch 'master' } when { branch 'master' }
steps { steps {
withCredentials([usernamePassword(credentialsId: 'dockerHub', passwordVariable: 'dockerHubPassword', usernameVariable: 'dockerHubUser')]) { withCredentials([usernamePassword(credentialsId: 'dockerHub', passwordVariable: 'dockerHubPassword', usernameVariable: 'dockerHubUser')]) {
sh "docker login -u ${dockerHubUser} -p ${dockerHubPassword} harbor.docker.zhiweireach.com" sh "docker login -u ${dockerHubUser} -p ${dockerHubPassword} harbor.docker.zhiweireach.com"
sh "docker build -t harbor.docker.zhiweireach.com/daemon/${env.JOB_NAME}:${env.BUILD_NUMBER} . " sh "docker build -t harbor.docker.zhiweireach.com/daemon/${env.JOB_NAME}:${env.BUILD_NUMBER} . "
} }
...@@ -76,4 +76,4 @@ pipeline { ...@@ -76,4 +76,4 @@ pipeline {
} }
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment