Skip to content
Snippets Groups Projects
Commit 15ea85f8 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : better error message

parent 60c30dcb
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@
set +x
if [[ $FOUND_JOB == 0 ]]; then
echo "ERROR : no successful job \"$DEPENDENCY_JOB\" found in branch \"$BRANCH_TO_PULL\" for project \"$DEP_NAME\""
echo "ERROR : no successful job \"$DEPENDENCY_JOB\" found in branch \"$BRANCH_TO_PULL\" for project \"$CI_PROJECT_PATH\""
if [[ ! -z "$CI_MERGE_REQUEST_ID" && $CI_MERGE_REQUEST_TITLE != *'Draft'* ]]; then
echo "****************************************************************************************************************************"
echo "****************************************************************************************************************************"
......@@ -373,7 +373,7 @@
}
}
if ( "$FOUND_JOB" -eq "-1" ) {
Write-Host "ERROR : no successful job \"$DEPENDENCY_JOB\" found in branch \"$BRANCH_TO_PULL\" for project \"$DEP_NAME\""
Write-Host "ERROR : no successful job \"$DEPENDENCY_JOB\" found in branch \"$BRANCH_TO_PULL\" for project \"$CI_PROJECT_PATH\""
if ( ! "$CI_MERGE_REQUEST_ID" -and ! "$CI_MERGE_REQUEST_TITLE" -match '.+Draft.+' ){
Write-Host "****************************************************************************************************************************"
Write-Host "****************************************************************************************************************************"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment