...
|
...
|
@@ -29,7 +29,8 @@ pipeline { |
|
|
stages {
|
|
|
stage('download package script and check params') {
|
|
|
steps {
|
|
|
echo "starting triger ticketID ${params.ticketID}......"
|
|
|
echo "starting triger ticketID ${params.callBack}......"
|
|
|
echo "starting triger ticketID ${params.clusterId}......"
|
|
|
echo "starting triger projectName ${params.projectName}......"
|
|
|
echo "starting triger projectGitGroup ${params.projectGitGroup}......"
|
|
|
echo "starting triger deployName ${params.deployName}......"
|
...
|
...
|
@@ -92,7 +93,7 @@ pipeline { |
|
|
echo "begin send build the deploy job"
|
|
|
if(params.callBack!='noNeedDeploy'){
|
|
|
build job: 'Docker-Image-Deplopy', parameters: [
|
|
|
string(name: 'callBack', value: "auto"),
|
|
|
string(name: 'callBack', value: "noNeedCallBack"),
|
|
|
string(name: 'clusterId', value: "${params.clusterId}"),
|
|
|
string(name: 'serviceName', value: "${params.deployName}"),
|
|
|
string(name: 'containerName', value: "${params.deployName}"),
|
...
|
...
|
@@ -112,7 +113,7 @@ pipeline { |
|
|
subject: "PineLine '${JOB_NAME}' (${BUILD_NUMBER}),构建结果: ${currentBuild.currentResult}",
|
|
|
body: "构建的内容为:${params.projectName},提交人员:${params.userMail}"
|
|
|
if(params.callBack!='noNeedCallBack'){
|
|
|
sh "curl '${callBack}&status=${currentBuild.currentResult}&jobId=${JOB_NAME},${BUILD_NUMBER}'"
|
|
|
sh "curl '${params.callBack}&status=${currentBuild.currentResult}&jobId=${JOB_NAME},${BUILD_NUMBER}'"
|
|
|
}
|
|
|
deleteDir() /* clean up our workspace */
|
|
|
}
|
...
|
...
|
|