Add pipelines for SLFO Snapshot
- Add pipeline to release SUSE:SLFO:Main:Build to SUSE:SLFO:Main:Build:Snapshot when standard repository finishes the build
This commit is contained in:
parent
f1204bbea6
commit
14420c4900
46
gocd/slfo.target.gocd.yaml
Normal file
46
gocd/slfo.target.gocd.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
format_version: 3
|
||||
pipelines:
|
||||
SLFO.Standard:
|
||||
group: SLFO.Target
|
||||
lock_behavior: unlockWhenFinished
|
||||
materials:
|
||||
repos:
|
||||
git: git://botmaster.suse.de/suse-repos.git
|
||||
auto_update: true
|
||||
whitelist:
|
||||
- SUSE:SLFO:Main:Build_-_standard.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.Standard.To.Finish:
|
||||
resources:
|
||||
- staging-bot
|
||||
tasks:
|
||||
- script: |
|
||||
export PYTHONPATH=scripts
|
||||
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLFO:Main:Build -r standard
|
||||
|
||||
- Release.Standard.To.Snapshot:
|
||||
roles:
|
||||
- SLE
|
||||
environment_variables:
|
||||
OSC_CONFIG: /home/go/config/oscrc-totest-manager
|
||||
resources:
|
||||
- staging-bot
|
||||
tasks:
|
||||
- script: |-
|
||||
set -e
|
||||
osc -A https://api.suse.de release SUSE:SLFO:Main:Build
|
||||
sleep 600
|
||||
while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Main:Build:Snapshot/_result?view=summary&repository=standard" | 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:Main:Build:Snapshot/_result?view=summary&repository=standard" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
Loading…
x
Reference in New Issue
Block a user