...
|
...
|
@@ -4,9 +4,9 @@ pipeline { |
|
|
|
|
|
parameters {
|
|
|
choice(name:'clusterId',choices:'aws\nyoho-web-gray\nyoho-ops\nyoho-web\nyoho-media\nyoho-java\n', description: '集群的信息')
|
|
|
string(name:'projectName', defaultValue: 'yoho-api-doc', description: 'GITLAB应用名称')
|
|
|
string(name:'projectGitGroup', defaultValue: 'fe', description: 'GITLAB所在的组')
|
|
|
string(name:'deployName', defaultValue: 'yoho-api-doc', description: '应用名称')
|
|
|
string(name:'projectName', defaultValue: 'qmc', description: 'GITLAB应用名称')
|
|
|
string(name:'projectGitGroup', defaultValue: 'test', description: 'GITLAB所在的组')
|
|
|
string(name:'deployName', defaultValue: 'yoho-ops-qmc', description: '应用名称')
|
|
|
string(name:'imageSource', defaultValue: 'yoho-ops', description: '镜像存储的仓库')
|
|
|
string(name:'branch', defaultValue: 'master', description: 'git分支名称')
|
|
|
}
|
...
|
...
|
@@ -75,22 +75,23 @@ pipeline { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// stage('build project') {
|
|
|
// steps {
|
|
|
// script {
|
|
|
// sh "sh ${PROJECT_WORK_DIR}/docker.sh ${PROJECT_WORK_DIR}"
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
stage('build clean package project') {
|
|
|
steps {
|
|
|
script {
|
|
|
sh "sh ${PROJECT_WORK_DIR}/docker.sh ${PROJECT_WORK_DIR}"
|
|
|
sh "tree ${PROJECT_WORK_DIR}"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// stage('build and push images to qcloud') {
|
|
|
// steps {
|
|
|
// script {
|
|
|
// sh "docker build -t ${QCLOUD_IMAGE_STORE} ${PROJECT_WORK_DIR}"
|
|
|
// sh "docker push ${QCLOUD_IMAGE_STORE}"
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
stage('build and push images to qcloud') {
|
|
|
steps {
|
|
|
script {
|
|
|
sh "docker build -t ${QCLOUD_IMAGE_STORE} ${PROJECT_WORK_DIR}"
|
|
|
sh "docker push ${QCLOUD_IMAGE_STORE}"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// stage('deploy to qcloud') {
|
|
|
// steps {
|
...
|
...
|
|