Commit 8af27d83 authored by daidekun's avatar daidekun

fix

parent 1c4a2e6e
...@@ -3,6 +3,8 @@ import org.qg.* ...@@ -3,6 +3,8 @@ import org.qg.*
def call(body) { def call(body) {
def config = [:] def config = [:]
def branchName = body.env.BRANCH_NAME
body.resolveStrategy = Closure.DELEGATE_FIRST body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config body.delegate = config
body() body()
...@@ -10,8 +12,7 @@ def call(body) { ...@@ -10,8 +12,7 @@ def call(body) {
node { node {
try { try {
stage ('Clone') { stage ('Clone') {
print currentBuild print branchName
print currentBuild.result
} }
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