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:
210
210
set -x
211
211
set -e
212
212
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
+
213
218
git config --local credential.helper "!f() { echo username=\\ $GIT_AUTH_USER; echo password=\\ $GIT_AUTH_PWD; }; f"
214
219
215
220
git fetch origin ${BRANCH}
@@ -374,7 +379,7 @@ spec:
374
379
375
380
if [[ -z "${ARTIFACTORY_ENCRYPT}" ]]; then
376
381
echo "Encrption key not available for Jenkins pipeline, please add it to the artifactory-access"
377
- exit 1
382
+ exit 0
378
383
fi
379
384
380
385
# 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