Commit 42f45de1 authored by wentao.suo's avatar wentao.suo

ff

parent ad0e0c60
...@@ -66,7 +66,7 @@ def call(body) { ...@@ -66,7 +66,7 @@ def call(body) {
echo applicaton_properties echo applicaton_properties
sh "if [ -f ${applicaton_properties} ]; then cp -rf ${applicaton_properties} ${contextDir}/application.properties; else echo \"## not exist ##\" > ${contextDir}/application.properties; fi" sh "if [ -f ${applicaton_properties} ]; then cp -rf ${applicaton_properties} ${contextDir}/application.properties; else echo \"## useing apollo ##\" > ${contextDir}/application.properties; fi"
sh "cp -rf /home/quant_group/qg-dockerfiles/templates_new/java/* ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates_new/java/* ${contextDir}"
...@@ -102,16 +102,17 @@ def call(body) { ...@@ -102,16 +102,17 @@ def call(body) {
}catch (err) { }catch (err) {
/* sh "rm -rf ${contextDir}"*/
ansiColor('xterm') { ansiColor('xterm') {
/*if (imageTag) {
_stage.clean_images(imageTag)
}*/
currentBuild.result = 'FAILED' currentBuild.result = 'FAILED'
/*_utils.beautyEcho(err, "fail")*/ /*_utils.beautyEcho(err, "fail")*/
throw err throw err
} }
} }finlly(){
sh "rm -rf ${contextDir}"
_stage.clean_images(imageTag)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment