...
|
...
|
@@ -79,7 +79,6 @@ pipeline { |
|
|
steps {
|
|
|
script {
|
|
|
sh "sh ${PROJECT_WORK_DIR}/docker.sh ${PROJECT_WORK_DIR}"
|
|
|
sh "tree ${PROJECT_WORK_DIR}"
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -93,37 +92,32 @@ pipeline { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// stage('deploy to qcloud') {
|
|
|
// steps {
|
|
|
// script {
|
|
|
// if(params.callBack!='noNeedDeploy'){
|
|
|
// build job: 'Docker-Image-Deplopy', parameters: [
|
|
|
// string(name: 'callBack', value: "noNeedCallBack"),
|
|
|
// string(name: 'clusterId', value: "${params.clusterId}"),
|
|
|
// string(name: 'serviceName', value: "${params.deployName}"),
|
|
|
// string(name: 'containerName', value: "${params.deployName}"),
|
|
|
// string(name: 'imageInfo', value: "${QCLOUD_IMAGE_VERSION}"),
|
|
|
// string(name: 'deployEnv', value: 'qcloud')]
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
stage('make deploy yaml version') {
|
|
|
steps {
|
|
|
script {
|
|
|
sh "sed -i 's/REPLACE_QCLOUD_IMAGE_STORE/$QCLOUD_IMAGE_STORE/g' ${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/${params.deployName}.yaml"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// post {
|
|
|
// always {
|
|
|
// script {
|
|
|
// echo "Pipeline is done,begin send mail"
|
|
|
// deleteDir()
|
|
|
// if(params.callBack!='noNeedCallBack'){
|
|
|
// sh "curl '${params.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}"
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
post {
|
|
|
always {
|
|
|
script {
|
|
|
echo "Pipeline is done,begin send mail"
|
|
|
sh "cat ${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/${params.deployName}.yaml"
|
|
|
}
|
|
|
}
|
|
|
failure {
|
|
|
script {
|
|
|
echo 'This will run only if failed'
|
|
|
echo 'list the package result '
|
|
|
sh "tree ${PROJECT_WORK_DIR}"
|
|
|
echo 'list the deploy yaml '
|
|
|
sh "cat ${env.WORKSPACE}/k8s-deploy-yaml/${params.clusterId}/${params.deployName}.yaml"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|