File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,11 @@ spec:
210210 set -x
211211 set -e
212212
213+ if [[ -z "$GIT_AUTH_USER" ]] || [[ -z "$GIT_AUTH_PWD" ]]; then
214+ echo "Git credentials not found. Store your git credentials in a secret named 'git-credentials'."
215+ exit 1
216+ fi
217+
213218 git config --local credential.helper "!f() { echo username=\\ $GIT_AUTH_USER; echo password=\\ $GIT_AUTH_PWD; }; f"
214219
215220 git fetch origin ${BRANCH}
@@ -374,7 +379,7 @@ spec:
374379
375380 if [[ -z "${ARTIFACTORY_ENCRYPT}" ]]; then
376381 echo "Encrption key not available for Jenkins pipeline, please add it to the artifactory-access"
377- exit 1
382+ exit 0
378383 fi
379384
380385 # Check if a Generic Local Repo has been created and retrieve the URL for it
You can’t perform that action at this time.
0 commit comments