mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-26 16:39:44 -06:00
gitlab-ci: simplify package pipeline job conditions
Use the job stage to distinguish upload jobs instead of an explicit variable.
This commit is contained in:
@@ -62,12 +62,12 @@
|
|||||||
|
|
||||||
.run_only_for_package:
|
.run_only_for_package:
|
||||||
rules:
|
rules:
|
||||||
- if: '$CMAKE_CI_PACKAGE != null && $CMAKE_CI_JOB_UPLOAD_PACKAGE == null'
|
- if: '$CMAKE_CI_PACKAGE == "dev"'
|
||||||
when: on_success
|
|
||||||
- if: '$CMAKE_CI_PACKAGE == "dev" && $CMAKE_CI_JOB_UPLOAD_PACKAGE == "true"'
|
|
||||||
variables:
|
variables:
|
||||||
RSYNC_DESTINATION: "dev"
|
RSYNC_DESTINATION: "dev"
|
||||||
when: on_success
|
when: on_success
|
||||||
|
- if: '$CMAKE_CI_PACKAGE != null && $CI_JOB_STAGE != "upload"'
|
||||||
|
when: on_success
|
||||||
- when: never
|
- when: never
|
||||||
|
|
||||||
.run_only_for_continuous_master:
|
.run_only_for_continuous_master:
|
||||||
|
|||||||
@@ -19,9 +19,6 @@
|
|||||||
- test -n "$RSYNC_DESTINATION"
|
- test -n "$RSYNC_DESTINATION"
|
||||||
- rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/
|
- rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/
|
||||||
|
|
||||||
variables:
|
|
||||||
CMAKE_CI_JOB_UPLOAD_PACKAGE: "true"
|
|
||||||
|
|
||||||
.rsync_upload_help:
|
.rsync_upload_help:
|
||||||
stage: upload
|
stage: upload
|
||||||
image: "fedora:34"
|
image: "fedora:34"
|
||||||
|
|||||||
Reference in New Issue
Block a user