Skip to content

Commit fa828b9

Browse files
committed
Updates error handling for Artifactory and git-credentials
1 parent c3adddd commit fa828b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ spec:
211211
set -e
212212
213213
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'."
214+
echo "Git credentials not found. The pipeline expects to find them in a secret named 'git-credentials'."
215+
echo " Update your CLI and register the pipeline again"
215216
exit 1
216217
fi
217218
@@ -378,8 +379,8 @@ spec:
378379
. ./env-config
379380
380381
if [[ -z "${ARTIFACTORY_ENCRYPT}" ]]; then
381-
echo "Encrption key not available for Jenkins pipeline, please add it to the artifactory-access"
382-
exit 0
382+
echo "It looks like your Artifactory installation is not complete. Please complete the steps found here - http://ibm.biz/complete-setup"
383+
exit 1
383384
fi
384385
385386
# Check if a Generic Local Repo has been created and retrieve the URL for it

0 commit comments

Comments
 (0)