Skip to content

Commit 159ac2d

Browse files
committed
Do a pull before.
1 parent b43e6a4 commit 159ac2d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bin/build.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ then
6868
fi
6969

7070
echo "-------------------------"
71-
set -x
72-
$DOCKER_CMD pull $TAG_NAME
71+
set +e
72+
if [[ "$SOURCE" = "redhat " ]]
73+
then
74+
set -x
75+
$DOCKER_CMD pull $TAG_BASE:$(getLastVersion)_latest
76+
else
77+
set -x
78+
$DOCKER_CMD pull $TAG_BASE:$(getLastVersion)_stable
79+
fi
80+
set -e
7381
$DOCKER_CMD build $PROXY $TAG_ARG $OS $JENKINS_VERSION_ARG $DOCKER_VERSION_ARG $JENKINS_INSTALL_URL_FLAG .

0 commit comments

Comments
 (0)