Skip to content
Snippets Groups Projects
Commit 503b23ae authored by Chase Qi's avatar Chase Qi
Browse files

.oniro-ci: use the same rule for rauc-bundle build and publish jobs


In `.gitlab-ci.yml`, rauc-bundle build and publish jobs all extends
`workspace-rules`, and the latter job needs the former job. This is
good.

However, with the rules defined on the upstream job
'.publish-rauc-bundle-to-hawkbit', gitlab always try to add rauc-bundle publish
jobs into pipeline, when the build jobs are not added, error occurs.

Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent 273a9703
No related branches found
No related tags found
No related merge requests found
...@@ -391,15 +391,6 @@ ...@@ -391,15 +391,6 @@
- hawkbitctl upload - hawkbitctl upload
-m "$CI_ONIRO_HAWKBIT_SWMOD_NAME:$BUNDLE_VERSION" -m "$CI_ONIRO_HAWKBIT_SWMOD_NAME:$BUNDLE_VERSION"
-a "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/$(readlink "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/${CI_ONIRO_RAUC_BUNDLE_NAME}-${MACHINE}.raucb")" -a "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/$(readlink "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/${CI_ONIRO_RAUC_BUNDLE_NAME}-${MACHINE}.raucb")"
rules:
# Publishing is done only for scheduled builds
- if: '$CI_PIPELINE_SOURCE == "schedule"'
# Run the job when a tag is placed.
- if: '$CI_COMMIT_TAG'
# For merge requests, the publishing is optional and can be triggered manually.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual
allow_failure: true
.build-zephyr-image: .build-zephyr-image:
extends: .build-image extends: .build-image
......
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