diff --git a/templates/license/license.gitlab-ci.yml b/templates/license/license.gitlab-ci.yml index 3b799aa..51a75ac 100644 --- a/templates/license/license.gitlab-ci.yml +++ b/templates/license/license.gitlab-ci.yml @@ -15,8 +15,7 @@ fi - > if [ "$NUMBER_OF_INVALID_LICENSES" -gt 0 ]; then - echo "Invalid licenses found. Number of invalid license ${DIFF_LICENSE}" - cat $INVALID_LICENSE_FILE + echo "Invalid licenses found. Number of invalid license ${$NUMBER_OF_INVALID_LICENSES}". See invalid-licenses file in artifacts. exit 1 else echo "All licenses valid" @@ -26,4 +25,5 @@ when: always expire_in: 2 weeks paths: - - $LICENSE_FILE \ No newline at end of file + - $LICENSE_FILE + - $INVALID_LICENSE_FILE \ No newline at end of file