Create new pipeline to deploy sle-prjmgr-tools scripts
This commit is contained in:
parent
cdbe773ef1
commit
47e39632a6
@ -64,7 +64,59 @@ pipelines:
|
||||
done
|
||||
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP5:GA:TEST/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||
|
||||
- Release.Images.To.Test.New:
|
||||
- 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:SLE-15-SP5:GA:TEST
|
||||
sleep 600
|
||||
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP5:GA:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep -v 'code="published" state="published">'); do
|
||||
echo PENDING
|
||||
sleep 600
|
||||
done
|
||||
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP5:GA:PUBLISH/_result?view=summary&repository=containers" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||
while (osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP5:GA: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:SLE-15-SP5:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||
|
||||
SLE15.SP5.Images.NEW:
|
||||
group: SLE15.Target
|
||||
lock_behavior: unlockWhenFinished
|
||||
materials:
|
||||
repos:
|
||||
git: git://botmaster.suse.de/suse-repos.git
|
||||
auto_update: true
|
||||
whitelist:
|
||||
- SUSE:SLE-15-SP5:GA_-_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:SLE-15-SP5:GA -r containerfile
|
||||
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLE-15-SP5:GA -r images
|
||||
|
||||
- Release.Images.To.Test:
|
||||
approval: manual
|
||||
roles:
|
||||
- SLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user