Commit 7ad49ebd authored by daidekun's avatar daidekun

dockerNode

parent da529054
......@@ -83,11 +83,6 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace)
sh "cp -rf /home/quant_group/jenkins_home/workspace/pre.${systemName}/node_modules/ node_modules"
sh "mv -f env.config.js ${configPath}"
dockerNode(image: "192.168.4.36/publibs/nodejs-slave") {
git "https://github.com/wakaleo/game-of-life"
sh 'mvn clean test'
}
def bowerFile = fileExists './bower.json'
if (bowerFile) {
......
......@@ -29,6 +29,8 @@ def call(body) {
node {
try {
dockerNode(image: "192.168.4.36/publibs/nodejs-slave") {
stage('Clean') {
_utils.beautyEcho(1, 'Clean')
_stage.clean_dir()
......@@ -99,6 +101,8 @@ def call(body) {
_utils.beautyEcho(7, 'Clean')
_stage.clean_images(imageTag)
}
}
} catch (err) {
if (imageTag) {
_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