summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2021-06-24 16:15:19 -0600
committerGitHub <noreply@github.com>2021-06-24 16:15:19 -0600
commitd7405ddd3908f328d052d1de7520620924825b7b (patch)
tree133814b295eb3b1e675e357a3b83f83b4071cb4b /share
parent010b431692f5b7fd755e685cad057e6c288c161e (diff)
downloadspack-d7405ddd3908f328d052d1de7520620924825b7b.tar.gz
spack-d7405ddd3908f328d052d1de7520620924825b7b.tar.bz2
spack-d7405ddd3908f328d052d1de7520620924825b7b.tar.xz
spack-d7405ddd3908f328d052d1de7520620924825b7b.zip
Pipelines: Set a pipeline type variable (#24505)
Spack pipelines need to take specific actions internally that depend on whether the pipeline is being run on a PR to spack or a merge to the develop branch. Pipelines can also run in other repositories, which represents other possible use cases than just the two mentioned above. This PR creates a "SPACK_PIPELINE_TYPE" gitlab variable which is propagated to rebuild jobs, and is also used internally to determine which pipeline-specific tasks to run. One goal of the PR is fix an issue where rebuild jobs which failed on develop pipelines did not properly report the broken full hash to the "broken-specs-url".
Diffstat (limited to 'share')
-rw-r--r--share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml
index 0247803a30..73d33c4b6d 100644
--- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml
+++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml
@@ -12,13 +12,13 @@ default:
- /^github\/pr[\d]+_.*$/
variables:
SPACK_PR_BRANCH: ${CI_COMMIT_REF_NAME}
- SPACK_IS_PR_PIPELINE: "True"
+ SPACK_PIPELINE_TYPE: "spack_pull_request"
.develop:
only:
- /^github\/develop$/
variables:
- SPACK_IS_PR_PIPELINE: "False"
+ SPACK_PIPELINE_TYPE: "spack_protected_branch"
.generate:
stage: generate