Skip to content

Commit 3fc6043

Browse files
committed
Updates order of activities in tag release
1 parent 5cab576 commit 3fc6043

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ spec:
208208
set -x
209209
set -e
210210
211+
git fetch origin ${BRANCH} --tags
212+
git checkout ${BRANCH}
213+
git branch --set-upstream-to=origin/${BRANCH} ${BRANCH}
214+
211215
echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
212216
213217
if [[ "${BRANCH}" == "master" ]] && [[ $(git describe --tag `git rev-parse HEAD`) =~ "^[0-9]+.[0-9]+.[0-9]+$" ]] || \
@@ -218,10 +222,6 @@ spec:
218222
exit 0
219223
fi
220224
221-
git fetch origin ${BRANCH} --tags
222-
git checkout ${BRANCH}
223-
git branch --set-upstream-to=origin/${BRANCH} ${BRANCH}
224-
225225
git config --global user.name "Jenkins Pipeline"
226226
git config --global user.email "[email protected]"
227227
git config --local credential.helper "!f() { echo username=\\$GIT_AUTH_USER; echo password=\\$GIT_AUTH_PWD; }; f"

0 commit comments

Comments
 (0)