Skip to content

Commit

Permalink
More rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 24, 2016
1 parent ef6a1d1 commit 3836e8b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ node('docker') {
sh 'ls'
sh 'mv bin/* ../bin/.'
}
stage 'Environment'

def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
if(!imagename){
echo "You must define an imagename in common.bash"
currentBuild.result = 'FAILURE'
}
if(maintainer){
echo "Building ${maintainer}:${tag} for ${maintainer}"
}

stage 'Build'
try{
def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
if(!imagename){
echo "You must define an imagename in common.bash"
currentBuild.result = 'FAILURE'
}
if(maintainer){
echo "Building ${maintainer}:${tag} for ${maintainer}"
}

sh 'bin/build.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');
Expand Down

0 comments on commit 3836e8b

Please sign in to comment.