Commit 64d1cb01 authored by daidekun's avatar daidekun

fixbugs

parent b7a336b7
......@@ -7,8 +7,24 @@ def checkout(branchName, contextDir, gitRepo) {
sh "git pull origin master"
}
def build(namespace, systemName, contextDir) {
sh "ansible-playbook /etc/ansible/build.yml -e prefix=${namespace} -e project_name=pre.${systemName} -e workspace=${contextDir} -vv"
def build(namespace, systemName, contextDir, buildType) {
switch (buildType) {
case "java":
env.PATH = "${tool 'M3'}/bin:${env.PATH}"
sh 'mvn clean package -P test -D maven.test.skip=true'
break
case "ui" || "nodejs":
sh "ansible-playbook /etc/ansible/build.yml -e prefix=${namespace} -e project_name=pre.${systemName} -e workspace=${contextDir} -vv"
break
case "python":
sh "mv ${contextDir}/config.ini config.ini"
sh "cp -f config.ini server/config/release/config.ini"
sh "cp -f config.ini ${configPath}"
sh 'tar zcf dist.tgz server/'
break
default:
break
}
}
def docker_build_and_push(buildNumber, branchName, harborGroup, systemName, contextDir) {
......
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