Skip to content

Commit

Permalink
gocd: slfo_stagings: Fix openSUSE-release-tools path.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleidi-suse committed Sep 16, 2024
1 parent 29d8faa commit a919039
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions gocd/slfo-stagings.gocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pipelines:
git: https://github.com/openSUSE/openSUSE-release-tools.git
whitelist:
- DO_NOT_TRIGGER
destination: scripts
stages:
- Check.Ring.1.Finished:
timeout: 50
Expand All @@ -26,8 +25,8 @@ pipelines:
tasks:
- script: |-
set -eu
export PYTHONPATH=$PWD/scripts
cd scripts/gocd
export PYTHONPATH=$PWD
cd gocd
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
echo $SLFO_RING_1_PROJECT status: "${status}"
if printf '%s' "${status}" | grep -q finished; then
Expand All @@ -43,7 +42,7 @@ pipelines:
tasks:
- script: |-
set -eu
export PYTHONPATH=$PWD/scripts
export PYTHONPATH=$PWD
## Setup osc staging plugin
tempdir=$(mktemp -d)
Expand Down
7 changes: 3 additions & 4 deletions gocd/slfo-stagings.gocd.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pipelines:
git: https://github.com/openSUSE/openSUSE-release-tools.git
whitelist:
- DO_NOT_TRIGGER
destination: scripts
stages:
- Check.Ring.1.Finished:
timeout: 50
Expand All @@ -27,8 +26,8 @@ pipelines:
tasks:
- script: |-
set -eu
export PYTHONPATH=$PWD/scripts
cd scripts/gocd
export PYTHONPATH=$PWD
cd gocd
status="$(osc -A $STAGING_API api /build/$SLFO_RING_1_PROJECT/standard/x86_64?view=status | grep 'code=' | sed -E 's/^.*code="(.*)".*$/\1/')"
echo $SLFO_RING_1_PROJECT status: "${status}"
if printf '%s' "${status}" | grep -q finished; then
Expand All @@ -44,7 +43,7 @@ pipelines:
tasks:
- script: |-
set -eu
export PYTHONPATH=$PWD/scripts
export PYTHONPATH=$PWD

## Setup osc staging plugin
tempdir=$(mktemp -d)
Expand Down

0 comments on commit a919039

Please sign in to comment.