- Add pipeline to release SUSE:SLFO:Main:Build to SUSE:SLFO:Main:Build:Snapshot when standard repository finishes the build
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
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
|