Skip to content

Commit

Permalink
rename trigger variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Nov 6, 2024
1 parent 9ccf4d5 commit 99c2b77
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions pipelines/main/launch_unsigned_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
common:
- diff-filter-build_plugin: &diff-filter-build
https://github.com/fatteneder/diff-filter-buildkite-plugin#main:
name: "build"
name: "TRIGGER_BUILD"
ignore:
- "*.md"
- "*.json"
Expand Down Expand Up @@ -46,7 +46,7 @@ steps:
- *pr-labels
commands: |
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
# Launch Linux build jobs
GROUP="Build" \
ALLOW_FAIL="false" \
Expand Down Expand Up @@ -92,7 +92,7 @@ steps:
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/doctest.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/pdf_docs/build_pdf_docs.yml
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/analyzegc.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/embedding.yml
Expand Down Expand Up @@ -120,7 +120,7 @@ steps:
commands: |
export ALLOW_FAIL="false"
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/gcext.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/test_revise.yml
Expand Down Expand Up @@ -166,7 +166,7 @@ steps:
commands: |
export ALLOW_FAIL="true"
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
# Launch Linux allowed-to-fail build jobs
GROUP="Allow Fail" \
Expand All @@ -192,7 +192,7 @@ steps:
commands: |
export ALLOW_FAIL="true"
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
# Launch Linux allowed-to-fail test jobs
GROUP="Allow Fail" \
Expand Down
6 changes: 3 additions & 3 deletions pipelines/main/launch_upload_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
common:
- diff-filter-build_plugin: &diff-filter-build
https://github.com/fatteneder/diff-filter-buildkite-plugin#main:
name: "build"
name: "TRIGGER_BUILD"
ignore:
- "*.md"
- "*.json"
Expand Down Expand Up @@ -34,7 +34,7 @@ steps:
export BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET
export ALLOW_FAIL="false"
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
# Launch `upload_*` jobs to store tarballs into S3 once tests are done
GROUP="Upload" \
Expand Down Expand Up @@ -87,7 +87,7 @@ steps:
# Explicitly pass along the cryptic token to child pipelines
export BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
export ALLOW_FAIL="true"
Expand Down
8 changes: 4 additions & 4 deletions pipelines/scheduled/launch_unsigned_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
common:
- diff-filter-build_plugin: &diff-filter-build
https://github.com/fatteneder/diff-filter-buildkite-plugin#main:
name: "build"
name: "TRIGGER_BUILD"
ignore:
- "*.md"
- "*.json"
Expand Down Expand Up @@ -43,7 +43,7 @@ steps:
- *pr-labels
commands: |
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
GROUP="Source Build" \
ALLOW_FAIL="false" \
Expand All @@ -63,7 +63,7 @@ steps:
repo_url: "https://github.com/JuliaCI/julia-buildkite"
commands: |
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || ${FORCE}))
if [[ ${BUILD} == 1 ]]; then
GROUP="Source Tests (Allow Fail)" \
ALLOW_FAIL="true" \
Expand All @@ -85,7 +85,7 @@ steps:
- *pr-labels
commands: |
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
GROUP="no_GPL" \
ALLOW_FAIL="false" \
Expand Down
4 changes: 2 additions & 2 deletions pipelines/scheduled/launch_upload_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
common:
- diff-filter-build_plugin: &diff-filter-build
https://github.com/fatteneder/diff-filter-buildkite-plugin#main:
name: "build"
name: "TRIGGER_BUILD"
ignore:
- "*.md"
- "*.json"
Expand Down Expand Up @@ -33,7 +33,7 @@ steps:
# Explicitly pass along the cryptic token to child pipelines
export BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET
FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0)
BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || $${FORCE}))
BUILD=$(($${TRIGGGER_BUILD} || $${FORCE}))
if [[ $${BUILD} == 1 ]]; then
# Launch `upload_*` jobs to store tarballs into S3 once tests are done
bash .buildkite/utilities/arches_pipeline_upload.sh \
Expand Down

0 comments on commit 99c2b77

Please sign in to comment.