Merge branch 'master' into SD153979
This commit is contained in:
commit
ba97836461
@ -14,7 +14,7 @@ done
|
|||||||
|
|
||||||
grep group: *.yaml | cut -d: -f3 | sort -u | while read group; do
|
grep group: *.yaml | cut -d: -f3 | sort -u | while read group; do
|
||||||
case $group in
|
case $group in
|
||||||
BCI|Factory|Leap|Admin|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers|ALP.Stagings|ALP.Target|ALP.Checkers|openSUSE.Legal|SUSE.Legal)
|
BCI|Factory|Leap|Admin|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers|ALP.Stagings|ALP.Target|ALP.Checkers|SLFO.Stagings|SLFO.Target|SLFO.Checkers|openSUSE.Legal|SUSE.Legal)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Do not create new groups without being admin and knowing the consequences - found $group"
|
echo "Do not create new groups without being admin and knowing the consequences - found $group"
|
||||||
|
@ -21,19 +21,19 @@ pipelines:
|
|||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
--staging SUSE:ALP:Products:Marble:6.0:Staging:A
|
--staging SUSE:SLFO:Products:SL-Micro:6.1:Staging:A
|
||||||
--only-release-packages --force
|
--only-release-packages --force
|
||||||
SL-Micro.Staging.B:
|
SL-Micro.Staging.B:
|
||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
--staging SUSE:ALP:Products:Marble:6.0:Staging:B
|
--staging SUSE:SLFO:Products:SL-Micro:6.1:Staging:B
|
||||||
--only-release-packages --force
|
--only-release-packages --force
|
||||||
|
|
||||||
SL-Micro.Staging.A:
|
SL-Micro.Staging.A:
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: SUSE:ALP:Products:Marble:6.0:Staging:A
|
STAGING_PROJECT: SUSE:SLFO:Products:SL-Micro:6.1:Staging:A
|
||||||
STAGING_API: https://api.suse.de
|
STAGING_API: https://api.suse.de
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: MicroOS
|
group: MicroOS
|
||||||
@ -44,7 +44,7 @@ pipelines:
|
|||||||
auto_update: true
|
auto_update: true
|
||||||
destination: repos
|
destination: repos
|
||||||
whitelist:
|
whitelist:
|
||||||
- SUSE:ALP:Products:Marble:6.0:Staging:A_-_standard.yaml
|
- SUSE:SLFO:Products:SL-Micro:6.1:Staging:A_-_standard.yaml
|
||||||
scripts:
|
scripts:
|
||||||
auto_update: true
|
auto_update: true
|
||||||
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
@ -69,7 +69,7 @@ pipelines:
|
|||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP:Products:Marble:6.0 -s $STAGING_PROJECT
|
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Products:SL-Micro:6.1 -s $STAGING_PROJECT
|
||||||
- Update.000product:
|
- Update.000product:
|
||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
@ -94,7 +94,7 @@ pipelines:
|
|||||||
|
|
||||||
SL-Micro.Staging.B:
|
SL-Micro.Staging.B:
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: SUSE:ALP:Products:Marble:6.0:Staging:B
|
STAGING_PROJECT: SUSE:SLFO:Products:SL-Micro:6.1:Staging:B
|
||||||
STAGING_API: https://api.suse.de
|
STAGING_API: https://api.suse.de
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: MicroOS
|
group: MicroOS
|
||||||
@ -105,7 +105,7 @@ pipelines:
|
|||||||
auto_update: true
|
auto_update: true
|
||||||
destination: repos
|
destination: repos
|
||||||
whitelist:
|
whitelist:
|
||||||
- SUSE:ALP:Products:Marble:6.0:Staging:B_-_standard.yaml
|
- SUSE:SLFO:Products:SL-Micro:6.1:Staging:B_-_standard.yaml
|
||||||
scripts:
|
scripts:
|
||||||
auto_update: true
|
auto_update: true
|
||||||
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
@ -130,7 +130,7 @@ pipelines:
|
|||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP:Products:Marble:6.0 -s $STAGING_PROJECT
|
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Products:SL-Micro:6.1 -s $STAGING_PROJECT
|
||||||
- Update.000product:
|
- Update.000product:
|
||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
|
@ -23,13 +23,13 @@ pipelines:
|
|||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
--staging SUSE:ALP:Products:Marble:6.0:Staging:<%= letter %>
|
--staging SUSE:SLFO:Products:SL-Micro:6.1:Staging:<%= letter %>
|
||||||
--only-release-packages --force
|
--only-release-packages --force
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% stagings.each do |letter| %>
|
<% stagings.each do |letter| %>
|
||||||
SL-Micro.Staging.<%= letter %>:
|
SL-Micro.Staging.<%= letter %>:
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: SUSE:ALP:Products:Marble:6.0:Staging:<%= letter %>
|
STAGING_PROJECT: SUSE:SLFO:Products:SL-Micro:6.1:Staging:<%= letter %>
|
||||||
STAGING_API: https://api.suse.de
|
STAGING_API: https://api.suse.de
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: MicroOS
|
group: MicroOS
|
||||||
@ -40,7 +40,7 @@ pipelines:
|
|||||||
auto_update: true
|
auto_update: true
|
||||||
destination: repos
|
destination: repos
|
||||||
whitelist:
|
whitelist:
|
||||||
- SUSE:ALP:Products:Marble:6.0:Staging:<%= letter %>_-_standard.yaml
|
- SUSE:SLFO:Products:SL-Micro:6.1:Staging:<%= letter %>_-_standard.yaml
|
||||||
scripts:
|
scripts:
|
||||||
auto_update: true
|
auto_update: true
|
||||||
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
@ -65,7 +65,7 @@ pipelines:
|
|||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
tasks:
|
tasks:
|
||||||
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:ALP:Products:Marble:6.0 -s $STAGING_PROJECT
|
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Products:SL-Micro:6.1 -s $STAGING_PROJECT
|
||||||
- Update.000product:
|
- Update.000product:
|
||||||
resources:
|
resources:
|
||||||
- repo-checker
|
- repo-checker
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
format_version: 3
|
format_version: 3
|
||||||
pipelines:
|
pipelines:
|
||||||
SL-Micro.Images:
|
SL-Micro6.0.Images:
|
||||||
group: MicroOS
|
group: MicroOS
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
materials:
|
materials:
|
||||||
@ -66,6 +66,72 @@ pipelines:
|
|||||||
sleep 600
|
sleep 600
|
||||||
done
|
done
|
||||||
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Marble:6.0:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
osc -A https://api.suse.de/ api "/build/SUSE:ALP:Products:Marble:6.0:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||||
|
SL-Micro6.1.Images:
|
||||||
|
group: MicroOS
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
repos:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Products:SL-Micro:6.1_-_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
|
||||||
|
./scripts/gocd/verify-repo-built-successful.py -A https://api.suse.de -p SUSE:SLFO:Products:SL-Micro:6.1 -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: |-
|
||||||
|
set -e
|
||||||
|
for product in 000productcompose SL-Micro; do
|
||||||
|
osc -A https://api.suse.de release SUSE:SLFO:Products:SL-Micro:6.1 $product
|
||||||
|
done
|
||||||
|
sleep 600
|
||||||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SL-Micro:6.1:ToTest/_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:SL-Micro:6.1:ToTest/_result?view=summary&repository=product" | 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: |-
|
||||||
|
set -e
|
||||||
|
osc -A https://api.suse.de release SUSE:SLFO:Products:SL-Micro:6.1:ToTest
|
||||||
|
sleep 600
|
||||||
|
while (osc -A https://api.suse.de/ api "/build/SUSE:SLFO:Products:SL-Micro:6.1: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:SL-Micro:6.1:PUBLISH/_result?view=summary&repository=product" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
|
||||||
SLCS.Images:
|
SLCS.Images:
|
||||||
group: MicroOS
|
group: MicroOS
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
|
843
gocd/slfo-stagings.gocd.yaml
Normal file
843
gocd/slfo-stagings.gocd.yaml
Normal file
@ -0,0 +1,843 @@
|
|||||||
|
---
|
||||||
|
format_version: 3
|
||||||
|
pipelines:
|
||||||
|
SUSE.SLFO.Main.Stagings.RelPkgs:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
timer:
|
||||||
|
spec: 0 0 * ? * *
|
||||||
|
only_on_changes: false
|
||||||
|
materials:
|
||||||
|
scripts:
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
stages:
|
||||||
|
- Generate.Release.Package:
|
||||||
|
approval: manual
|
||||||
|
jobs:
|
||||||
|
SUSE.SLFO.Main.Staging.A:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:A
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.B:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:B
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.C:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:C
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.D:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:D
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.E:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:E
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.F:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:F
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.G:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:G
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.H:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:H
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.S:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:S
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.V:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:V
|
||||||
|
--only-release-packages --force
|
||||||
|
SUSE.SLFO.Main.Staging.Y:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:Y
|
||||||
|
--only-release-packages --force
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.A:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:A
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:A_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.B:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:B
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:B_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.C:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:C
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:C_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.D:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:D
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:D_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.E:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:E
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:E_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.F:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:F
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:F_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.G:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:G
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:G_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.H:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:H
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:H_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.S:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:S
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:S_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.V:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:V
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:V_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
SUSE.SLFO.Main.Staging.Y:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:Y
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:Y_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
97
gocd/slfo-stagings.gocd.yaml.erb
Normal file
97
gocd/slfo-stagings.gocd.yaml.erb
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
---
|
||||||
|
<% stagings = %w(A B C D E F G H S V Y) -%>
|
||||||
|
format_version: 3
|
||||||
|
pipelines:
|
||||||
|
SUSE.SLFO.Main.Stagings.RelPkgs:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
timer:
|
||||||
|
spec: 0 0 * ? * *
|
||||||
|
only_on_changes: false
|
||||||
|
materials:
|
||||||
|
scripts:
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
stages:
|
||||||
|
- Generate.Release.Package:
|
||||||
|
approval: manual
|
||||||
|
jobs:
|
||||||
|
<% stagings.each do |letter| -%>
|
||||||
|
SUSE.SLFO.Main.Staging.<%= letter %>:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
||||||
|
--staging SUSE:SLFO:Main:Staging:<%= letter %>
|
||||||
|
--only-release-packages --force
|
||||||
|
<% end -%>
|
||||||
|
<% stagings.each do |letter| %>
|
||||||
|
SUSE.SLFO.Main.Staging.<%= letter %>:
|
||||||
|
environment_variables:
|
||||||
|
STAGING_PROJECT: SUSE:SLFO:Main:Staging:<%= letter %>
|
||||||
|
STAGING_API: https://api.suse.de
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
group: SLFO.Stagings
|
||||||
|
lock_behavior: unlockWhenFinished
|
||||||
|
materials:
|
||||||
|
stagings:
|
||||||
|
git: git://botmaster.suse.de/suse-repos.git
|
||||||
|
auto_update: true
|
||||||
|
destination: repos
|
||||||
|
whitelist:
|
||||||
|
- SUSE:SLFO:Main:Staging:<%= letter %>_-_standard.yaml
|
||||||
|
scripts:
|
||||||
|
auto_update: true
|
||||||
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
||||||
|
whitelist:
|
||||||
|
- DO_NOT_TRIGGER
|
||||||
|
destination: scripts
|
||||||
|
stages:
|
||||||
|
- Checks:
|
||||||
|
jobs:
|
||||||
|
Check.Build.Succeeds:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
|
||||||
|
./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
|
||||||
|
Repo.Checker:
|
||||||
|
environment_variables:
|
||||||
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Main -s $STAGING_PROJECT
|
||||||
|
|
||||||
|
- Update.000product:
|
||||||
|
resources:
|
||||||
|
- repo-checker
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
cd scripts/gocd
|
||||||
|
|
||||||
|
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
|
||||||
|
else
|
||||||
|
./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- Enable.images.repo:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
<% end -%>
|
Loading…
x
Reference in New Issue
Block a user