Authored by jimi.ji

docker images build

@@ -22,8 +22,8 @@ @@ -22,8 +22,8 @@
22 <file leaf-file-name="Jenkinsfile" pinned="false" current-in-tab="true"> 22 <file leaf-file-name="Jenkinsfile" pinned="false" current-in-tab="true">
23 <entry file="file://$PROJECT_DIR$/Docker-Node-Build/Jenkinsfile"> 23 <entry file="file://$PROJECT_DIR$/Docker-Node-Build/Jenkinsfile">
24 <provider selected="true" editor-type-id="text-editor"> 24 <provider selected="true" editor-type-id="text-editor">
25 - <state relative-caret-position="216">  
26 - <caret line="107" column="24" lean-forward="false" selection-start-line="107" selection-start-column="24" selection-end-line="107" selection-end-column="24" /> 25 + <state relative-caret-position="243">
  26 + <caret line="9" column="61" lean-forward="true" selection-start-line="9" selection-start-column="61" selection-end-line="9" selection-end-column="61" />
27 <folding /> 27 <folding />
28 </state> 28 </state>
29 </provider> 29 </provider>
@@ -53,6 +53,8 @@ @@ -53,6 +53,8 @@
53 </component> 53 </component>
54 <component name="FindInProjectRecents"> 54 <component name="FindInProjectRecents">
55 <findStrings> 55 <findStrings>
  56 + <find>QA_EMAIL</find>
  57 + <find>check_push_aws_images</find>
56 <find>workdir</find> 58 <find>workdir</find>
57 </findStrings> 59 </findStrings>
58 </component> 60 </component>
@@ -533,12 +535,12 @@ @@ -533,12 +535,12 @@
533 <option name="number" value="Default" /> 535 <option name="number" value="Default" />
534 <option name="presentableId" value="Default" /> 536 <option name="presentableId" value="Default" />
535 <updated>1545890692513</updated> 537 <updated>1545890692513</updated>
536 - <workItem from="1545890694011" duration="3156000" /> 538 + <workItem from="1545890694011" duration="3501000" />
537 </task> 539 </task>
538 <servers /> 540 <servers />
539 </component> 541 </component>
540 <component name="TimeTrackingManager"> 542 <component name="TimeTrackingManager">
541 - <option name="totallyTimeSpent" value="3156000" /> 543 + <option name="totallyTimeSpent" value="3501000" />
542 </component> 544 </component>
543 <component name="ToolWindowManager"> 545 <component name="ToolWindowManager">
544 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" /> 546 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
@@ -633,8 +635,8 @@ @@ -633,8 +635,8 @@
633 </entry> 635 </entry>
634 <entry file="file://$PROJECT_DIR$/Docker-Node-Build/Jenkinsfile"> 636 <entry file="file://$PROJECT_DIR$/Docker-Node-Build/Jenkinsfile">
635 <provider selected="true" editor-type-id="text-editor"> 637 <provider selected="true" editor-type-id="text-editor">
636 - <state relative-caret-position="216">  
637 - <caret line="107" column="24" lean-forward="false" selection-start-line="107" selection-start-column="24" selection-end-line="107" selection-end-column="24" /> 638 + <state relative-caret-position="243">
  639 + <caret line="9" column="61" lean-forward="true" selection-start-line="9" selection-start-column="61" selection-end-line="9" selection-end-column="61" />
638 <folding /> 640 <folding />
639 </state> 641 </state>
640 </provider> 642 </provider>
@@ -3,13 +3,13 @@ pipeline { @@ -3,13 +3,13 @@ pipeline {
3 agent { label 'master' } 3 agent { label 'master' }
4 4
5 parameters { 5 parameters {
6 - string(name:'projectName', defaultValue: 'yohoblk-wap', description: 'GITLAB应用名称') 6 + string(name:'projectName', defaultValue: 'yoho-app-web', description: 'GITLAB应用名称')
7 string(name:'projectGitGroup', defaultValue: 'fe', description: 'GITLAB所在的组') 7 string(name:'projectGitGroup', defaultValue: 'fe', description: 'GITLAB所在的组')
8 - string(name:'projectBranch', defaultValue: 'feature/docker', description: 'git分支名称')  
9 - string(name:'deployName', defaultValue: 'node-yohoblk-wap', description: '应用名称') 8 + string(name:'projectBranch', defaultValue: 'release/1.0', description: 'git分支名称')
  9 + string(name:'deployName', defaultValue: 'yoho-app-web', description: '应用名称')
10 string(name:'imageSource', defaultValue: 'yoho-online', description: '镜像存储的仓库') 10 string(name:'imageSource', defaultValue: 'yoho-online', description: '镜像存储的仓库')
11 - string(name:'imageVersion', defaultValue: '20180714999', description: '镜像存储的版本')  
12 - string(name:'isNeedCdn',defaultValue:'NO', description: '是否需要上传CDN') 11 + string(name:'imageVersion', defaultValue: 'release-1.0-20181227144324', description: '镜像存储的版本')
  12 + string(name:'isNeedCdn',defaultValue:'YES', description: '是否需要上传CDN')
13 } 13 }
14 14
15 15
@@ -40,7 +40,6 @@ pipeline { @@ -40,7 +40,6 @@ pipeline {
40 echo "print the para imageSource is : ${params.imageSource}......" 40 echo "print the para imageSource is : ${params.imageSource}......"
41 echo "print the para imageVersion is : ${params.imageVersion}......" 41 echo "print the para imageVersion is : ${params.imageVersion}......"
42 def localdir = "${workdir}/docker.sh" 42 def localdir = "${workdir}/docker.sh"
43 -  
44 if(fileExists("$localdir")){ 43 if(fileExists("$localdir")){
45 echo "starting delete the dir ${workdir}" 44 echo "starting delete the dir ${workdir}"
46 sh "rm -rf ${workdir}" 45 sh "rm -rf ${workdir}"