Authored by jimi

add lables

@@ -4,9 +4,9 @@ pipeline { @@ -4,9 +4,9 @@ pipeline {
4 4
5 parameters { 5 parameters {
6 choice(name:'clusterId',choices:'aws\nyoho-web-gray\nyoho-ops\nyoho-web\nyoho-media\nyoho-java\n', description: '集群的信息') 6 choice(name:'clusterId',choices:'aws\nyoho-web-gray\nyoho-ops\nyoho-web\nyoho-media\nyoho-java\n', description: '集群的信息')
7 - string(name:'projectName', defaultValue: 'yoho-api-doc', description: 'GITLAB应用名称')  
8 - string(name:'projectGitGroup', defaultValue: 'fe', description: 'GITLAB所在的组')  
9 - string(name:'deployName', defaultValue: 'yoho-api-doc', description: '应用名称') 7 + string(name:'projectName', defaultValue: 'qmc', description: 'GITLAB应用名称')
  8 + string(name:'projectGitGroup', defaultValue: 'test', description: 'GITLAB所在的组')
  9 + string(name:'deployName', defaultValue: 'yoho-ops-qmc', description: '应用名称')
10 string(name:'imageSource', defaultValue: 'yoho-ops', description: '镜像存储的仓库') 10 string(name:'imageSource', defaultValue: 'yoho-ops', description: '镜像存储的仓库')
11 string(name:'branch', defaultValue: 'master', description: 'git分支名称') 11 string(name:'branch', defaultValue: 'master', description: 'git分支名称')
12 } 12 }
@@ -75,22 +75,23 @@ pipeline { @@ -75,22 +75,23 @@ pipeline {
75 } 75 }
76 } 76 }
77 77
78 - // stage('build project') {  
79 - // steps {  
80 - // script {  
81 - // sh "sh ${PROJECT_WORK_DIR}/docker.sh ${PROJECT_WORK_DIR}"  
82 - // }  
83 - // }  
84 - // } 78 + stage('build clean package project') {
  79 + steps {
  80 + script {
  81 + sh "sh ${PROJECT_WORK_DIR}/docker.sh ${PROJECT_WORK_DIR}"
  82 + sh "tree ${PROJECT_WORK_DIR}"
  83 + }
  84 + }
  85 + }
85 86
86 - // stage('build and push images to qcloud') {  
87 - // steps {  
88 - // script {  
89 - // sh "docker build -t ${QCLOUD_IMAGE_STORE} ${PROJECT_WORK_DIR}"  
90 - // sh "docker push ${QCLOUD_IMAGE_STORE}"  
91 - // }  
92 - // }  
93 - // } 87 + stage('build and push images to qcloud') {
  88 + steps {
  89 + script {
  90 + sh "docker build -t ${QCLOUD_IMAGE_STORE} ${PROJECT_WORK_DIR}"
  91 + sh "docker push ${QCLOUD_IMAGE_STORE}"
  92 + }
  93 + }
  94 + }
94 95
95 // stage('deploy to qcloud') { 96 // stage('deploy to qcloud') {
96 // steps { 97 // steps {