Skip to content

Commit

Permalink
move cztb2 to cztb3
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Sep 27, 2024
1 parent b50c7ea commit 6539905
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ stages:
- build
- status_update

.on_cztb2:
.on_cztb3:
tags:
- shell
- cztb2
- cztb3
rules:
# Only report failure if the pipeline failed.
- if: '$CI_JOB_NAME =~ /status_failure/'
Expand All @@ -17,7 +17,7 @@ stages:
- when: on_success

.status_report: &status_report
- export context="cztb2"
- export context="cztb3"
- |
curl --url "https://api.github.com/repos/llnl/${CI_PROJECT_NAME}/statuses/${CI_COMMIT_SHA}" \
--header 'Content-Type: application/json' \
Expand All @@ -27,8 +27,8 @@ stages:
status_pending:
tags:
- shell
- cztb2
extends: [.on_cztb2]
- cztb3
extends: [.on_cztb3]
stage: status_initiate
id_tokens:
CI_JOB_JWT:
Expand All @@ -40,8 +40,8 @@ status_pending:
status_success:
tags:
- shell
- cztb2
extends: [.on_cztb2]
- cztb3
extends: [.on_cztb3]
stage: status_update
script:
- export pipeline_status="success"
Expand All @@ -51,19 +51,19 @@ status_success:
status_failure:
tags:
- shell
- cztb2
extends: [.on_cztb2]
- cztb3
extends: [.on_cztb3]
stage: status_update
script:
- export pipeline_status="failure"
- *status_report
when: on_failure

# build across power lab
build-cztb2:
build-cztb3:
tags:
- shell
- cztb2
- cztb3
stage: build
script:
- git clone $MSR_SAFE_ANSIBLE
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/subscribed-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include: [component: $CI_SERVER_FQDN/lc-components/id_tokens/id_tokens-component@main]

# Trigger a build pipeline for the following systems
cztb2-build-and-test:
cztb3-build-and-test:
variables:
CI_MACHINE: "cztb2"
CI_MACHINE: "cztb3"
extends: [.build]

0 comments on commit 6539905

Please sign in to comment.