Skip to content

Commit

Permalink
Merge pull request openSUSE#3178 from gyr/sles16-pipeline-split
Browse files Browse the repository at this point in the history
Add new pipeline to release SLES to :PUBLISH
  • Loading branch information
gyr authored Oct 16, 2024
2 parents e8fa1ac + 6a93a42 commit 841fa84
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions gocd/sles.target.gocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,47 @@ pipelines:
sleep 600
done
osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
SLES16.0.Images.To.Publish:
group: SLES
materials:
repos:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
whitelist:
- SUSE:SLFO:Products:SLES:16.0_-_images.yaml
destination: repos
scripts:
auto_update: true
git: https://github.com/openSUSE/openSUSE-release-tools.git
whitelist:
- DO_NOT_TRIGGER
destination: scripts
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
stages:
- Release.Images:
approval: manual
roles:
- SLE
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-totest-manager
resources:
- staging-bot
tasks:
- script: |-
set -e
for product in kiwi-templates-Minimal 000productcompose agama-installer-SLES; do
osc -A https://api.suse.de release SUSE:SLFO:Products:SLES:16.0:TEST $product
done
sleep 600
while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep -v 'code="published" state="published">'); do
echo PENDING
sleep 600
done
osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep -v 'code="published" state="published">'); do
echo PENDING
sleep 600
done
osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SLES:16.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED

0 comments on commit 841fa84

Please sign in to comment.