...
|
...
|
@@ -73,15 +73,17 @@ pipeline { |
|
|
|
|
|
post {
|
|
|
always {
|
|
|
echo "Pipeline is done,begin send mail"
|
|
|
deleteDir() /* clean up our workspace */
|
|
|
println "###############################"
|
|
|
if(params.callBack!='noNeedCallBack'){
|
|
|
sh "curl '${callBack}&status=${currentBuild.currentResult}&jobId=${JOB_NAME},${BUILD_NUMBER}'"
|
|
|
script {
|
|
|
echo "Pipeline is done,begin send mail"
|
|
|
deleteDir() /* clean up our workspace */
|
|
|
println "###############################"
|
|
|
if(params.callBack!='noNeedCallBack'){
|
|
|
sh "curl '${callBack}&status=${currentBuild.currentResult}&jobId=${JOB_NAME},${BUILD_NUMBER}'"
|
|
|
}
|
|
|
mail to: "${env.QA_EMAIL},${params.userMail}",
|
|
|
subject: "PineLine '${JOB_NAME}' (${BUILD_NUMBER}),构建结果: ${currentBuild.currentResult}",
|
|
|
body: "构建的内容为:${params.projectName},提交人员:${params.userMail}"
|
|
|
}
|
|
|
mail to: "${env.QA_EMAIL},${params.userMail}",
|
|
|
subject: "PineLine '${JOB_NAME}' (${BUILD_NUMBER}),构建结果: ${currentBuild.currentResult}",
|
|
|
body: "构建的内容为:${params.projectName},提交人员:${params.userMail}"
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|