67 lines
2.6 KiB
YAML
67 lines
2.6 KiB
YAML
|
format_version: 3
|
||
|
pipelines:
|
||
|
Installer.Images:
|
||
|
group: ALP.Target
|
||
|
lock_behavior: unlockWhenFinished
|
||
|
materials:
|
||
|
repos:
|
||
|
git: git://botmaster.suse.de/suse-repos.git
|
||
|
auto_update: true
|
||
|
whitelist:
|
||
|
- SUSE:ALP:Products:Installer:1.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:
|
||
|
- Expect.Images.To.Finish:
|
||
|
resources:
|
||
|
- staging-bot
|
||
|
tasks:
|
||
|
- script: |
|
||
|
export PYTHONPATH=scripts
|
||
|
set -e
|
||
|
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:ALP:Products:Installer:1.0 -r images
|
||
|
|
||
|
- Release.Images.To.Test:
|
||
|
approval: manual
|
||
|
roles:
|
||
|
- SLE
|
||
|
environment_variables:
|
||
|
OSC_CONFIG: /home/go/config/oscrc-totest-manager
|
||
|
resources:
|
||
|
- staging-bot
|
||
|
tasks:
|
||
|
- script: |-
|
||
|
osc -A https://api.suse.de release SUSE:ALP:Products:Installer:1.0
|
||
|
sleep 600
|
||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Installer:1.0:ToTest/_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:ALP:Products:Installer:1.0:ToTest/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||
|
|
||
|
- Release.Images.To.Publish:
|
||
|
approval: manual
|
||
|
roles:
|
||
|
- SLE
|
||
|
environment_variables:
|
||
|
OSC_CONFIG: /home/go/config/oscrc-totest-manager
|
||
|
resources:
|
||
|
- staging-bot
|
||
|
tasks:
|
||
|
- script: |-
|
||
|
osc -A https://api.suse.de release SUSE:ALP:Products:Installer:1.0:ToTest
|
||
|
sleep 600
|
||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Installer:1.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:ALP:Products:Installer:1.0:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||
|
|