2019-03-28 11:32:49 +01:00
|
|
|
format_version: 3
|
|
|
|
pipelines:
|
2021-01-04 21:26:32 +08:00
|
|
|
<% %w(Factory Backports:SLE-15-SP3).each do |project| -%>
|
2019-03-28 11:32:49 +01:00
|
|
|
<% nickname = project.gsub(':', '.') -%>
|
|
|
|
AdiChecker.<%= nickname %>:
|
|
|
|
group: openSUSE.Checkers
|
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
environment_variables:
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-repo-checker
|
|
|
|
materials:
|
|
|
|
script:
|
|
|
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
|
|
|
destination: scripts
|
|
|
|
repos:
|
|
|
|
git: git://botmaster.suse.de/opensuse-repos.git
|
|
|
|
auto_update: true
|
|
|
|
whitelist:
|
|
|
|
- openSUSE:<%= project %>:Staging:adi*.yaml
|
|
|
|
destination: repos
|
|
|
|
stages:
|
|
|
|
- Run:
|
|
|
|
jobs:
|
|
|
|
Run:
|
|
|
|
resources:
|
2019-05-29 18:13:38 +02:00
|
|
|
- repo-checker
|
2019-03-28 11:32:49 +01:00
|
|
|
tasks:
|
|
|
|
- script: |-
|
2019-05-30 21:48:48 +02:00
|
|
|
./scripts/staging-installcheck.py -A https://api.opensuse.org -p openSUSE:<%= project %>
|
2019-03-28 13:33:38 +01:00
|
|
|
SBot.Regular.<%= nickname %>:
|
|
|
|
group: <%= nickname %>.pkglistgen
|
|
|
|
lock_behavior: unlockWhenFinished
|
|
|
|
timer:
|
|
|
|
spec: 0 0 * ? * *
|
|
|
|
environment_variables:
|
|
|
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
|
|
|
materials:
|
|
|
|
git:
|
|
|
|
git: https://github.com/openSUSE/openSUSE-release-tools.git
|
|
|
|
stages:
|
|
|
|
- Run:
|
|
|
|
approval:
|
|
|
|
type: manual
|
|
|
|
jobs:
|
|
|
|
Run:
|
2019-09-26 16:33:11 +02:00
|
|
|
timeout: 30
|
2019-03-28 13:33:38 +01:00
|
|
|
resources:
|
2019-05-29 18:13:38 +02:00
|
|
|
- staging-bot
|
2019-03-28 13:33:38 +01:00
|
|
|
tasks:
|
2019-05-30 21:48:48 +02:00
|
|
|
- script: |-
|
|
|
|
set -e
|
|
|
|
tempdir=$(mktemp -d)
|
|
|
|
mkdir -p $tempdir/.osc-plugins
|
|
|
|
ln -s $PWD/osc-staging.py $tempdir/.osc-plugins
|
|
|
|
ln -s $PWD/osclib $tempdir/.osc-plugins
|
|
|
|
export HOME=$tempdir
|
|
|
|
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> rebuild
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> list --supersede
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> adi --by-develproject
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> select --non-interactive --merge --try-strategies
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> unselect --cleanup
|
|
|
|
osc -A https://api.opensuse.org staging -p openSUSE:<%= project %> repair --cleanup
|
|
|
|
rm -rf $tempdir
|
|
|
|
|
2019-03-28 11:32:49 +01:00
|
|
|
<% end -%>
|