Commit 55cba125 authored by daidekun's avatar daidekun

fix

parent 63454203
...@@ -3,18 +3,13 @@ import org.qg.* ...@@ -3,18 +3,13 @@ import org.qg.*
def call(body) { def call(body) {
def config = [:] def config = [:]
def env = body.env def branchName = body.env.BRANCH_NAME
body.resolveStrategy = Closure.DELEGATE_FIRST body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config body.delegate = config
body() body()
node { node {
branchName = env.BRANCH_NAME
gitRepo = env.GIT_REPO
namespace = env.NAMESPACE
isDeploy = env.IS_DEPLOY
buildNumber = env.BUILD_NUMBER
try { try {
stage ('Clone') { stage ('Clone') {
print branchName print branchName
......
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