Skip to content

Commit ce8d6a4

Browse files
Auto scan fix.
Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
1 parent c7a5cc3 commit ce8d6a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ check:
3333
- MAINLINE=$(echo $VERSIONS | awk '{print $1}');
3434
- STABLE=$(echo $VERSIONS | awk '{print $2}');
3535
- |
36-
if [ "${MAINLINE}" != "$(cat MAINLINE.txt)" ] || [ -n "${FORCE_BUILD}" ] ; then
36+
if [ ! -z "${FORCE_BUILD+x}" ] || [ "${MAINLINE}" != "$(cat MAINLINE.txt)" ]; then
3737
curl -F token=${CI_JOB_TOKEN} -F ref=master -F "variables[VERSION]=${MAINLINE}" -F "variables[BUILD]=true" -F "variables[TYPE]=MAINLINE" https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/trigger/pipeline
3838
else
3939
curl -F token=${CI_JOB_TOKEN} -F ref=master -F "variables[VERSION]=${MAINLINE}" -F "variables[SCAN]=true" https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/trigger/pipeline
4040
fi
4141
- |
42-
if [ "${STABLE}" != "$(cat STABLE.txt)" ] || [ -n "${FORCE_BUILD}" ]; then
42+
if [ ! -z "${FORCE_BUILD+x}" ] || [ "${STABLE}" != "$(cat STABLE.txt)" ]; then
4343
curl -F token=${CI_JOB_TOKEN} -F ref=master -F "variables[VERSION]=${STABLE}" -F "variables[BUILD]=true" -F "variables[TYPE]=STABLE" https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/trigger/pipeline
4444
else
4545
curl -F token=${CI_JOB_TOKEN} -F ref=master -F "variables[VERSION]=${STABLE}" -F "variables[SCAN]=true" https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/trigger/pipeline

0 commit comments

Comments
 (0)