Skip to content

Commit

Permalink
Move checkout inside try block
Browse files Browse the repository at this point in the history
Prior to this commit the checkout call was outside the try block. This commit
fixes that by moving the checkout into the try block incase it fails and the
working directory still needs to be cleaned up.
  • Loading branch information
rebpdx committed Aug 9, 2018
1 parent 3e05c6a commit b3bbab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ node {
def platform = platforms[platform_idx]
builds[platform] = {
node {
checkout scm

try {
checkout scm

image = docker.build("cmake-build:${env.BUILD_ID}")

stage("Build ${platform}") {
Expand Down

0 comments on commit b3bbab8

Please sign in to comment.