We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807cfbc commit 235ac8eCopy full SHA for 235ac8e
1 file changed
Jenkinsfile
@@ -210,6 +210,11 @@ spec:
210
set -x
211
set -e
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
+
218
git config --local credential.helper "!f() { echo username=\\$GIT_AUTH_USER; echo password=\\$GIT_AUTH_PWD; }; f"
219
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
384
385
# Check if a Generic Local Repo has been created and retrieve the URL for it
0 commit comments