Commit 63454203 authored by daidekun's avatar daidekun

fixbugs

parent 65ad95a8
......@@ -3,20 +3,23 @@ import org.qg.*
def call(body) {
def config = [:]
def env = body.env
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()
node {
branchName = body.env.BRANCH_NAME
gitRepo = body.env.GIT_REPO
namespace = body.env.NAMESPACE
isDeploy = body.env.IS_DEPLOY
buildNumber = body.env.BUILD_NUMBER
branchName = env.BRANCH_NAME
gitRepo = env.GIT_REPO
namespace = env.NAMESPACE
isDeploy = env.IS_DEPLOY
buildNumber = env.BUILD_NUMBER
try {
stage ('Clone') {
print branchName
print gitRepo
print namespace
}
stage ('Build') {
sh "echo 'building ${config.projectName} ...'"
......
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