File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ check:
33
33
- MAINLINE=$(echo $VERSIONS | awk '{print $1}');
34
34
- STABLE=$(echo $VERSIONS | awk '{print $2}');
35
35
- |
36
- if [ "${MAINLINE}" != "$(cat MAINLINE.txt)" ] || [ -n "${FORCE_BUILD}" ] ; then
36
+ if [ ! -z "${FORCE_BUILD+x}" ] || [ "${ MAINLINE}" != "$(cat MAINLINE.txt)" ]; then
37
37
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
38
38
else
39
39
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
40
40
fi
41
41
- |
42
- if [ "${STABLE}" != "$(cat STABLE.txt)" ] || [ -n "${FORCE_BUILD} " ]; then
42
+ if [ ! -z "${FORCE_BUILD+x}" ] || [ "${ STABLE}" != "$(cat STABLE.txt)" ]; then
43
43
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
44
44
else
45
45
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
You can’t perform that action at this time.
0 commit comments