Merge pull request #2794 from coolo/regroup_pipelines

gocd: Simplify the groups and restrict them in the CI
This commit is contained in:
Stephan Kulow 2022-04-05 13:14:56 +02:00 committed by GitHub
commit b7d4dbdf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 72 additions and 61 deletions

View File

@ -11,6 +11,17 @@ for file in *.erb; do
erb -T - $file > $(basename $file .erb)
done
grep group: *.yaml | cut -d: -f3 | sort -u | while read group; do
case $group in
BCI|Factory|Leap|Admin|LEO|MicroOS|Monitors|openSUSE.Checkers|SLE15.Stagings|SLE15.Target|SLE.Checkers)
;;
*)
echo "Do not create new groups without being admin and knowing the consequences - found $group"
exit 1
esac
done
for file in *.gocd.yaml; do
java -jar yaml-config-plugin-0.9.0.jar syntax $file
done

View File

@ -1,7 +1,7 @@
format_version: 3
pipelines:
LeapMicro.RelPkgs:
group: LeapMicro.Target
group: Leap
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@ -20,7 +20,7 @@ pipelines:
- script: ./pkglistgen.py -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:Micro:5.2 -s target --only-release-packages
LeapMicro.Package.Lists:
group: LeapMicro.Target
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot

View File

@ -4,7 +4,7 @@ pipelines:
MicroOS.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: MicroOS.Stagings
group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -36,7 +36,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:A
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: MicroOS.Stagings
group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -99,7 +99,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:B
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: MicroOS.Stagings
group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -5,7 +5,7 @@ pipelines:
MicroOS.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: MicroOS.Stagings
group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -32,7 +32,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP3:Update:Products:MicroOS52:Staging:<%= letter %>
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: MicroOS.Stagings
group: MicroOS
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -1,7 +1,7 @@
format_version: 3
pipelines:
MicroOS.RelPkgs:
group: MicroOS.Target
group: MicroOS
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@ -20,7 +20,7 @@ pipelines:
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP3:Update:Products:MicroOS52 -s target --only-release-packages --force
MicroOS.Package.Lists:
group: MicroOS.Target
group: MicroOS
lock_behavior: unlockWhenFinished
materials:
repos:
@ -45,7 +45,7 @@ pipelines:
- script: ./scripts/pkglistgen.py -A https://api.suse.de --debug update_and_solve -p SUSE:SLE-15-SP3:Update:Products:MicroOS52 -s target --force
MicroOS.Images:
group: MicroOS.Target
group: MicroOS
lock_behavior: unlockWhenFinished
materials:
repos:

View File

@ -1,7 +1,7 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -66,7 +66,7 @@ pipelines:
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory:RISCV -s target --only-release-packages --force
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory:RISCV -s target
Update.Repos.Factory:
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -102,7 +102,7 @@ pipelines:
tasks:
- script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:RISCV
Pkglistgen.openSUSE_Leap_15.4:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -124,7 +124,7 @@ pipelines:
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org -o openSUSE:Leap:15.4 -s SUSE:SLE-15-SP4:GA
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.4 -s target
Pkglistgen.openSUSE_Leap_15.3_Update_Respin:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -147,7 +147,7 @@ pipelines:
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.3:Update:Respin -s target
Update.Repos.Leap.openSUSE_Leap_15.4:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -168,7 +168,7 @@ pipelines:
tasks:
- script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.4
Update.Repos.Leap.openSUSE_Leap_15.3_Update_Respin:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot

View File

@ -1,7 +1,7 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -35,7 +35,7 @@ pipelines:
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
Update.Repos.Factory:
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -58,7 +58,7 @@ pipelines:
- script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %>
<% end -%>
Pkglistgen.openSUSE_Leap_15.4:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -89,7 +89,7 @@ pipelines:
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
Pkglistgen.openSUSE_Leap_15.3_Update_Respin:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
@ -122,7 +122,7 @@ pipelines:
<% %w(openSUSE:Leap:15.4 openSUSE:Leap:15.3:Update:Respin).each do |project| -%>
Update.Repos.Leap.<%= project.gsub(':', '_') %>:
group: Leap.pkglistgen
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot

View File

@ -3,7 +3,7 @@ pipelines:
Factory.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -133,7 +133,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:A
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -198,7 +198,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:B
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -263,7 +263,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:C
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -328,7 +328,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:D
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -393,7 +393,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:E
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -458,7 +458,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:F
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -523,7 +523,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:G
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -588,7 +588,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:H
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -653,7 +653,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:I
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -718,7 +718,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:J
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -783,7 +783,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:K
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -848,7 +848,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:L
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -913,7 +913,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:M
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -978,7 +978,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:N
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -1043,7 +1043,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:O
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -1108,7 +1108,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:Gcc7
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -3,7 +3,7 @@ pipelines:
Factory.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -31,7 +31,7 @@ pipelines:
STAGING_PROJECT: openSUSE:Factory:Staging:<%= letter %>
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
group: Factory
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -4,7 +4,7 @@ pipelines:
SLE15.SP4.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -99,7 +99,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:A
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -167,7 +167,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:B
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -235,7 +235,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:C
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -303,7 +303,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:D
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -371,7 +371,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:E
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -439,7 +439,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:F
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -507,7 +507,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:G
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -575,7 +575,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:H
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -643,7 +643,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:S
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -711,7 +711,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:V
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:
@ -779,7 +779,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:Y
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -5,7 +5,7 @@ pipelines:
SLE15.SP4.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -32,7 +32,7 @@ pipelines:
STAGING_PROJECT: SUSE:SLE-15-SP4:GA:Staging:<%= letter %>
STAGING_API: https://api.suse.de
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: SLE15.SP4.Stagings
group: SLE15.Stagings
lock_behavior: unlockWhenFinished
materials:
stagings:

View File

@ -1,7 +1,7 @@
format_version: 3
pipelines:
SLE15.SP4.RelPkgs:
group: SLE15.SP4.Target
group: SLE15.Target
lock_behavior: unlockWhenFinished
timer:
spec: 0 10 * ? * *
@ -20,7 +20,7 @@ pipelines:
- script: ./pkglistgen.py -A https://api.suse.de update_and_solve -p SUSE:SLE-15-SP4:GA -s target --only-release-packages --force
SLE15.SP4.Package.Lists:
group: SLE15.SP4.Target
group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:
@ -45,7 +45,7 @@ pipelines:
- script: ./scripts/pkglistgen.py -A https://api.suse.de --debug update_and_solve -p SUSE:SLE-15-SP4:GA -s target --force
SLE15.SP4.Images:
group: SLE15.SP4.Target
group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:
@ -112,7 +112,7 @@ pipelines:
osc -A https://api.suse.de/ api "/build/SUSE:SLE-15-SP4:GA:PUBLISH/_result?view=summary&repository=images" | grep "result project" | grep 'code="published" state="published">' && echo PUBLISHED
SLE15.SP4.ImagesManual:
group: SLE15.SP4.Target
group: SLE15.Target
lock_behavior: unlockWhenFinished
materials:
repos:

View File

@ -25,7 +25,7 @@ pipelines:
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org -p openSUSE:Factory
SBot.Regular.Factory:
group: Factory.pkglistgen
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *
@ -81,7 +81,7 @@ pipelines:
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org -p openSUSE:Backports:SLE-15-SP4
SBot.Regular.Backports.SLE-15-SP4:
group: Backports.SLE-15-SP4.pkglistgen
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *

View File

@ -27,7 +27,7 @@ pipelines:
- script: |-
./scripts/staging-installcheck.py -A https://api.opensuse.org -p openSUSE:<%= project %>
SBot.Regular.<%= nickname %>:
group: <%= nickname %>.pkglistgen
group: openSUSE.Checkers
lock_behavior: unlockWhenFinished
timer:
spec: 0 0 * ? * *