2022-10-25 09:59:45 +02:00
|
|
|
---
|
|
|
|
format_version: 3
|
|
|
|
pipelines:
|
|
|
|
ALP.Stagings.RelPkgs:
|
|
|
|
environment_variables:
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
|
|
|
group: LEO
|
|
|
|
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:
|
|
|
|
ALP.Staging.A:
|
|
|
|
resources:
|
|
|
|
- repo-checker
|
|
|
|
tasks:
|
|
|
|
- script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve --staging SUSE:ALP:Staging:A --only-release-packages --force
|
|
|
|
ALP.Staging.B:
|
|
|
|
resources:
|
|
|
|
- repo-checker
|
|
|
|
tasks:
|
|
|
|
- script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve --staging SUSE:ALP:Staging:B --only-release-packages --force
|
|
|
|
|
|
|
|
ALP.Staging.A:
|
|
|
|
environment_variables:
|
|
|
|
STAGING_PROJECT: SUSE:ALP:Staging:A
|
|
|
|
STAGING_API: https://api.opensuse.org
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
|
|
|
group: LEO
|
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
materials:
|
|
|
|
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:ALP -s $STAGING_PROJECT
|
2023-01-02 15:34:10 +01:00
|
|
|
|
2022-10-25 09:59:45 +02: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"
|
2022-10-25 09:59:45 +02:00
|
|
|
|
|
|
|
ALP.Staging.B:
|
|
|
|
environment_variables:
|
|
|
|
STAGING_PROJECT: SUSE:ALP:Staging:B
|
|
|
|
STAGING_API: https://api.opensuse.org
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
|
|
|
group: LEO
|
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
materials:
|
|
|
|
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:ALP -s $STAGING_PROJECT
|
2023-01-02 15:34:10 +01:00
|
|
|
|
2022-10-25 09:59:45 +02: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"
|