From d7405ddd3908f328d052d1de7520620924825b7b Mon Sep 17 00:00:00 2001 From: Scott Wittenburg Date: Thu, 24 Jun 2021 16:15:19 -0600 Subject: 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". --- share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') 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 -- cgit v1.2.3-60-g2f50