Commit 1f04aa6b authored by wentao.suo's avatar wentao.suo

fff

parent 6c1ec60f
......@@ -14,6 +14,13 @@ def debug() {
_utils().beautyEcho("debug", "info")
}
def contextMkdir(key) {
uuid = UUID.randomUUID().toString()
contextDir = "/home/quant_group/pacakge/${key}"
sh "mkdir -p ${contextDir}"
return contextDir
}
def before_prepare() {
sh "cd /home/quant_group/qg-dockerfiles; git pull; cd -"
sh "cd /home/quant_group/config_repository; git pull origin master; cd -"
......
// src/org/qg/docker/Utils.groovy
package org.qg.docker_new;
def root = "/home/quantgroup/"
def contextMkdir(key) {
uuid = UUID.randomUUID().toString()
contextDir = "/home/quant_group/pacakge/${key}"
sh "mkdir -p ${contextDir}"
return contextDir
}
def beautyEcho(content, type) {
red = "31"
......
......@@ -40,7 +40,7 @@ def call(body) {
echo config.buildType
stage('prepare') {
_utils.beautyEcho("Prepare", "stage")
contextDir = _utils.contextMkdir("${systemName}-${timeStemp}")
contextDir = _stage.contextMkdir("${systemName}-${timeStemp}")
_stage.before_prepare()
}
......
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