Skip to content
Snippets Groups Projects
Verified Commit 6cd3842a authored by Pawel Stankiewicz's avatar Pawel Stankiewicz :speech_balloon:
Browse files

Don't run deploy in schedule when HAWKBIT_* not set and allow for failure if...

Don't run deploy in schedule when HAWKBIT_* not set and allow for failure if server has problems or variables are not right

Signed-off-by: Pawel Stankiewicz's avatarPaweł Stankiewicz <pawel.stankiewicz@huawei.com>
parent db7e0150
No related branches found
No related tags found
No related merge requests found
Pipeline #10923 skipped
...@@ -404,9 +404,11 @@ ...@@ -404,9 +404,11 @@
-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: rules:
# Publishing is done only for scheduled builds # Publishing is done only for scheduled builds
- if: '$CI_PIPELINE_SOURCE == "schedule"' - if: $CI_PIPELINE_SOURCE == "schedule" && $HAWKBIT_URL && $HAWKBIT_USERNAME && $HAWKBIT_PASSWORD
allow_failure: true
# Run the job when a tag is placed. # Run the job when a tag is placed.
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
allow_failure: true
# For merge requests, the publishing is optional and can be triggered manually. # For merge requests, the publishing is optional and can be triggered manually.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual when: manual
......
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