Skip to content

Commit

Permalink
Adding multi-phase Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 9, 2016
1 parent 313aa89 commit 7f694b2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node {
}

stage 'Build'

def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
Expand All @@ -26,12 +26,20 @@ node {
if(maintainer){
echo "Building ${maintainer}:${tag} for ${maintainer}"
}

sh 'bin/build.sh'


sh 'bin/rebuild.sh'

stage 'Start container'

sh 'bin/ci-run.sh && sleep 60'

stage 'Tests'

sh 'bin/test.sh'
// should build a finally construct here
stage 'Stop container'

sh 'bin/ci-stop.sh'

stage 'Push'

Expand Down

0 comments on commit 7f694b2

Please sign in to comment.