add downstream dependencie and quote version

The VERSION variable is still missing in downstream jobs even though the
documentation states it could be added like that. Add the VERSION to the
trigger job and also quote it, to avoid possible YAML parsing issues.

Adding a *depend* to the triggered job makes the CI report the
downstream success state instead of instantly marking the upstream job
as success. Meaning, if a downstream SDK or IB job fails, the upstream
job is marked as failed.

Signed-off-by: Paul Spooren <mail@aparcar.org>
pull/65/head
Paul Spooren 2020-09-13 10:20:58 -10:00
parent 8fade93d39
commit b24eb19785
2 changed files with 6 additions and 3 deletions

View File

@ -26,8 +26,11 @@ generate-targets:
- targets.yml
trigger-deploy:
variables:
VERSION: "$VERSION"
stage: deploy
trigger:
strategy: depend
include:
- artifact: targets.yml
job: generate-targets

View File

@ -17,8 +17,8 @@ gen_targets_sdk() {
deploy-sdk_$ARCH:
extends: .deploy-sdk
variables:
VERSION: $VERSION
TARGETS: $TARGETS"
VERSION: \"$VERSION\"
TARGETS: \"$TARGETS\""
done
}
@ -29,7 +29,7 @@ gen_targets_imagebuilder() {
deploy-imagebuilder_$TARGET:
extends: .deploy-imagebuilder
variables:
VERSION: $VERSION"
VERSION: \"$VERSION\""
done
}