Skip to content
Snippets Groups Projects
Commit 7d9d792d authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

accept and pass PIPELINE_NAME

parent 0f76ca90
Branches
Tags
1 merge request!909accept and pass PIPELINE_NAME
Pipeline #92970 failed
...@@ -31,13 +31,14 @@ jobs: ...@@ -31,13 +31,14 @@ jobs:
ciskip: true ciskip: true
- name: Trigger EICweb - name: Trigger EICweb
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
uses: eic/trigger-gitlab-ci@v2 uses: eic/trigger-gitlab-ci@v3
with: with:
url: https://eicweb.phy.anl.gov url: https://eicweb.phy.anl.gov
project_id: 290 project_id: 290
token: ${{ secrets.EICWEB_EIC_CONTAINER_TRIGGER }} token: ${{ secrets.EICWEB_EIC_CONTAINER_TRIGGER }}
ref_name: ${{ github.event.pull_request.head.ref || github.ref }} ref_name: ${{ github.event.pull_request.head.ref || github.ref }}
variables: variables: |
GITHUB_REPOSITORY=${{ github.repository }} GITHUB_REPOSITORY=${{ github.repository }}
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }} GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
GITHUB_PR=${{ github.event.pull_request.number }} GITHUB_PR=${{ github.event.pull_request.number }}
PIPELINE_NAME_CONTAINER=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
...@@ -55,6 +55,8 @@ stages: ...@@ -55,6 +55,8 @@ stages:
## nightly builds are now part of the regular master build in order to keep ## nightly builds are now part of the regular master build in order to keep
## all artifacts available at all times. ## all artifacts available at all times.
workflow: workflow:
# would like to use PIPELINE_NAME but there is a bug https://gitlab.com/gitlab-org/gitlab/-/issues/441777
name: '$PIPELINE_NAME_CONTAINER'
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "web"' - if: '$CI_PIPELINE_SOURCE == "web"'
...@@ -555,6 +557,7 @@ benchmarks:detector:default: ...@@ -555,6 +557,7 @@ benchmarks:detector:default:
BENCHMARKS_TAG: "${INTERNAL_TAG}-default" BENCHMARKS_TAG: "${INTERNAL_TAG}-default"
BENCHMARKS_CONTAINER: "jug_xl" BENCHMARKS_CONTAINER: "jug_xl"
BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE" BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE"
PIPELINE_NAME: "$PIPELINE_NAME_CONTAINER"
trigger: trigger:
project: EIC/benchmarks/detector_benchmarks project: EIC/benchmarks/detector_benchmarks
strategy: depend strategy: depend
...@@ -574,6 +577,7 @@ benchmarks:detector:nightly: ...@@ -574,6 +577,7 @@ benchmarks:detector:nightly:
BENCHMARKS_TAG: "${INTERNAL_TAG}-nightly" BENCHMARKS_TAG: "${INTERNAL_TAG}-nightly"
BENCHMARKS_CONTAINER: "jug_xl" BENCHMARKS_CONTAINER: "jug_xl"
BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE" BENCHMARKS_REGISTRY: "$CI_REGISTRY_IMAGE"
PIPELINE_NAME: "$PIPELINE_NAME_CONTAINER"
trigger: trigger:
project: EIC/benchmarks/detector_benchmarks project: EIC/benchmarks/detector_benchmarks
strategy: depend strategy: depend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment