Skip to content

Commit b43e6a4

Browse files
committed
Do a docker pull before build to re-use layers
1 parent 3b115e6 commit b43e6a4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Jenkinsfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ pipeline {
4444
bin/build.sh $TAG_BASE:$(getLastVersion)_$JENKINS_VERSION $JENKINS_REPO_SOURCE
4545
'''
4646
}
47-
stage('Test image ${version}') {
48-
sh 'bin/test_build.sh'
49-
}
5047
}
5148
}
5249
}

bin/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ fi
6969

7070
echo "-------------------------"
7171
set -x
72-
[ $PUSH = true ] && $DOCKER_CMD pull $TAG_NAME || echo "Building it from scratch"
72+
$DOCKER_CMD pull $TAG_NAME
7373
$DOCKER_CMD build $PROXY $TAG_ARG $OS $JENKINS_VERSION_ARG $DOCKER_VERSION_ARG $JENKINS_INSTALL_URL_FLAG .

0 commit comments

Comments
 (0)