2020-08-07 13:22:38 -03:00
|
|
|
---
|
|
|
|
format_version: 3
|
|
|
|
pipelines:
|
2024-03-25 10:50:09 +01:00
|
|
|
SL-Micro.Stagings.RelPkgs:
|
2020-08-07 13:22:38 -03:00
|
|
|
environment_variables:
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
2022-04-05 13:13:15 +02:00
|
|
|
group: MicroOS
|
2020-08-07 13:22:38 -03:00
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
timer:
|
2021-10-27 09:17:26 +02:00
|
|
|
spec: 0 0 * ? * *
|
2020-08-07 13:22:38 -03:00
|
|
|
only_on_changes: false
|
|
|
|
materials:
|
|
|
|
scripts:
|
|
|
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
|
|
|
stages:
|
|
|
|
- Generate.Release.Package:
|
|
|
|
approval: manual
|
|
|
|
jobs:
|
2024-03-25 10:50:09 +01:00
|
|
|
SL-Micro.Staging.A:
|
2020-08-07 13:22:38 -03:00
|
|
|
resources:
|
|
|
|
- repo-checker
|
|
|
|
tasks:
|
|
|
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
2024-05-14 15:36:31 +02:00
|
|
|
--staging SUSE:SLFO:Products:SL-Micro:6.1:Staging:A
|
2023-01-02 15:34:10 +01:00
|
|
|
--only-release-packages --force
|
2024-03-25 10:50:09 +01:00
|
|
|
SL-Micro.Staging.B:
|
2020-08-07 13:22:38 -03:00
|
|
|
resources:
|
|
|
|
- repo-checker
|
|
|
|
tasks:
|
|
|
|
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve
|
2024-05-14 15:36:31 +02:00
|
|
|
--staging SUSE:SLFO:Products:SL-Micro:6.1:Staging:B
|
2023-01-02 15:34:10 +01:00
|
|
|
--only-release-packages --force
|
2020-08-07 13:22:38 -03:00
|
|
|
|
2024-03-25 10:50:09 +01:00
|
|
|
SL-Micro.Staging.A:
|
2020-08-07 13:22:38 -03:00
|
|
|
environment_variables:
|
2024-05-14 15:36:31 +02:00
|
|
|
STAGING_PROJECT: SUSE:SLFO:Products:SL-Micro:6.1:Staging:A
|
2020-08-07 13:22:38 -03:00
|
|
|
STAGING_API: https://api.suse.de
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
2022-04-05 13:13:15 +02:00
|
|
|
group: MicroOS
|
2020-08-07 13:22:38 -03:00
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
materials:
|
|
|
|
stagings:
|
|
|
|
git: git://botmaster.suse.de/suse-repos.git
|
|
|
|
auto_update: true
|
|
|
|
destination: repos
|
|
|
|
whitelist:
|
2024-05-14 15:36:31 +02:00
|
|
|
- SUSE:SLFO:Products:SL-Micro:6.1:Staging:A_-_standard.yaml
|
2020-08-07 13:22:38 -03:00
|
|
|
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:
|
2024-05-14 15:36:31 +02:00
|
|
|
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Products:SL-Micro:6.1 -s $STAGING_PROJECT
|
2020-08-07 13:22:38 -03:00
|
|
|
- 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:
|
2023-01-02 15:34:10 +01:00
|
|
|
resources:
|
|
|
|
- staging-bot
|
|
|
|
tasks:
|
|
|
|
- script: |-
|
|
|
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
2020-08-07 13:22:38 -03:00
|
|
|
|
2024-03-25 10:50:09 +01:00
|
|
|
SL-Micro.Staging.B:
|
2020-08-07 13:22:38 -03:00
|
|
|
environment_variables:
|
2024-05-14 15:36:31 +02:00
|
|
|
STAGING_PROJECT: SUSE:SLFO:Products:SL-Micro:6.1:Staging:B
|
2020-08-07 13:22:38 -03:00
|
|
|
STAGING_API: https://api.suse.de
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
2022-04-05 13:13:15 +02:00
|
|
|
group: MicroOS
|
2020-08-07 13:22:38 -03:00
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
materials:
|
|
|
|
stagings:
|
|
|
|
git: git://botmaster.suse.de/suse-repos.git
|
|
|
|
auto_update: true
|
|
|
|
destination: repos
|
|
|
|
whitelist:
|
2024-05-14 15:36:31 +02:00
|
|
|
- SUSE:SLFO:Products:SL-Micro:6.1:Staging:B_-_standard.yaml
|
2020-08-07 13:22:38 -03:00
|
|
|
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:
|
2024-05-14 15:36:31 +02:00
|
|
|
- script: ./scripts/staging-installcheck.py -A $STAGING_API -p SUSE:SLFO:Products:SL-Micro:6.1 -s $STAGING_PROJECT
|
2020-08-07 13:22:38 -03:00
|
|
|
- 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:
|
2023-01-02 15:34:10 +01:00
|
|
|
resources:
|
|
|
|
- staging-bot
|
|
|
|
tasks:
|
|
|
|
- script: |-
|
|
|
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|