openSUSE-release-tools/gocd/sle15sp2-stagings.gocd.yaml.erb

76 lines
2.5 KiB
Plaintext
Raw Normal View History

2019-05-18 17:34:14 +02:00
---
<% stagings = %w(A B C D E F G H S V Y) -%>
format_version: 3
pipelines:
2019-07-04 21:39:54 +02:00
SLE15.SP2.Stagings.RelPkgs:
2019-05-18 17:34:14 +02:00
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
2019-07-04 21:39:54 +02:00
group: SLE15.SP2.Stagings
2019-05-18 17:34:14 +02:00
lock_behavior: unlockWhenFinished
timer:
spec: 0 */10 * ? * *
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| -%>
2019-07-04 21:39:54 +02:00
SLE.15.SP2.Staging.<%= letter %>:
2019-05-18 17:34:14 +02:00
resources:
- repo-checker
tasks:
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
2019-07-04 21:39:54 +02:00
--staging SUSE:SLE-15-SP2:GA:Staging:<%= letter %>
2019-05-18 17:34:14 +02:00
--only-release-packages --force
<% end -%>
<% stagings.each do |letter| %>
2019-07-04 21:39:54 +02:00
SLE15.SP2.Staging.<%= letter %>:
2019-05-18 17:34:14 +02:00
environment_variables:
2019-07-04 21:39:54 +02:00
STAGING_PROJECT: SUSE:SLE-15-SP2:GA:Staging:<%= letter %>
2019-05-18 17:34:14 +02:00
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
2019-07-04 21:39:54 +02:00
group: SLE15.SP2.Stagings
2019-05-18 17:34:14 +02:00
lock_behavior: unlockWhenFinished
materials:
stagings:
git: git://botmaster.suse.de/suse-repos.git
auto_update: true
destination: repos
whitelist:
2019-07-04 21:39:54 +02:00
- SUSE:SLE-15-SP2:GA:Staging:<%= letter %>_-_standard.yaml
2019-05-18 17:34:14 +02:00
scripts:
auto_update: true
git: https://github.com/openSUSE/openSUSE-release-tools.git
whitelist:
- DO_NOT_TRIGGER
destination: scripts
stages:
- Check.Build.Succeeds:
resources:
- staging-bot
2019-05-18 17:34:14 +02:00
tasks:
- script: |-
export PYTHONPATH=$PWD/scripts
2019-05-18 17:34:14 +02:00
cd scripts/gocd
python3 ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s pending
2019-05-18 17:34:14 +02:00
python3 ./verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
- Update.000product:
resources:
- repo-checker
tasks:
- script: |-
export PYTHONPATH=$PWD/scripts
2019-05-18 17:34:14 +02:00
cd scripts/gocd
if ../pkglistgen.py --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force; then
python ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s success
2019-05-18 17:34:14 +02:00
else
python ./report-status.py -A $STAGING_API -p $STAGING_PROJECT -n packagelists -r standard -s failure
2019-05-18 17:34:14 +02:00
exit 1
fi
<% end -%>