Commit 33ffdf97 authored by daidekun's avatar daidekun

fixbugs

parent 64ed2880
...@@ -5,7 +5,6 @@ def call(body) { ...@@ -5,7 +5,6 @@ def call(body) {
def config = [:] def config = [:]
print body.env.BRANCH_NAME print body.env.BRANCH_NAME
print body.env.GIT_REPO print body.env.GIT_REPO
def branchName = body.env.BRANCH_NAME
body.resolveStrategy = Closure.DELEGATE_FIRST body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config body.delegate = config
...@@ -14,7 +13,7 @@ def call(body) { ...@@ -14,7 +13,7 @@ def call(body) {
node { node {
try { try {
stage ('Clone') { stage ('Clone') {
print branchName print config.env.BRANCH_NAME
} }
stage ('Build') { stage ('Build') {
sh "echo 'building ${config.projectName} ...'" 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