Skip to content
Snippets Groups Projects
Commit 83b658d5 authored by Matthew Clarkson's avatar Matthew Clarkson
Browse files

fix: use `pushd`/`popd` built-ins.

parent d00b0eeb
No related branches found
No related tags found
No related merge requests found
Pipeline #11949 passed with stages
in 3 minutes and 10 seconds
......@@ -23,24 +23,24 @@ spec:
---
.bazelisk-fragment:
rc:
- cd "${ROOT}"
- pushd "${ROOT}"
- |
# Copying Bazel run commands
set -euo pipefail
while IFS= read -r LINE; do
printf '%s\n' "${LINE//\$\{CI_PROJECT_DIR\}/${CI_PROJECT_DIR}}" >> "$[[inputs.dst]]"
done < "$[[inputs.src]]"
- cd -
- popd
execute:
- cd "${ROOT}"
- pushd "${ROOT}"
- >
"$[[inputs.bazelisk]]" "$[[inputs.command]]" "$[[inputs.target]]"
- cd -
- popd
testlogs: # https://gitlab.com/gitlab-org/gitlab/-/issues/19746
- |
# Copying test logs to workaround gitlab#19746
set -euo pipefail
cd "${ROOT}"
pushd "${ROOT}"
shopt -s extglob globstar nullglob
for SRC in bazel-testlogs/**/test.@(xml|log); do
DST="bazel-testlogs~/${SRC#bazel-testlogs}"
......@@ -51,7 +51,7 @@ spec:
rm bazel-testlogs
mv bazel-testlogs{~,}
fi
cd -
popd
.bazelisk:
image: "$[[inputs.image]]:$[[inputs.tag]]"
......
  • Congregate Migrate @congregate_migrate

    mentioned in commit 92daacd5

    By Ghost User on 2023-12-20T09:35:30

    · Imported

    mentioned in commit 92daacd5

    By Ghost User on 2023-12-20T09:35:30

    Toggle commit list
  • Congregate Migrate @congregate_migrate

    mentioned in commit 2db976e4

    By GITLAB_TOKEN on 2024-12-06T11:22:02

    · Imported

    mentioned in commit 2db976e4

    By GITLAB_TOKEN on 2024-12-06T11:22:02

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment