gocd: add openSUSE:Leap:15.4:Images to pkglistgen pipeline for the Leap 15.4 CR

This commit is contained in:
Max Lin 2022-10-21 15:57:22 +08:00
parent 4765ffae64
commit c95e2fbb6f
2 changed files with 75 additions and 3 deletions

View File

@ -145,7 +145,28 @@ pipelines:
tasks:
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org -o openSUSE:Leap:15.3:Update:Respin -t openSUSE:Leap:15.3:Update -s SUSE:SLE-15-SP3:Update
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.3:Update:Respin -s target
Pkglistgen.openSUSE_Leap_15.4_CR:
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 40 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- pkglistgen:
approval:
type: manual
jobs:
openSUSE_Leap_15.4_Images_target:
resources:
- repo-checker
tasks:
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org -o openSUSE:Leap:15.4:Images -t openSUSE:Leap:15.4:Update -s SUSE:SLE-15-SP4:Update
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.4:Images -s target
Update.Repos.Leap.openSUSE_Leap_15.5:
group: Leap
lock_behavior: unlockWhenFinished
@ -167,6 +188,27 @@ pipelines:
- repo-checker
tasks:
- script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.5
Update.Repos.Leap.openSUSE_Leap_15.4_Images:
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 0 */3 * ?
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
openSUSE_Leap_15.4_Images:
resources:
- repo-checker
tasks:
- script: python3 ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.4:Images
Update.Repos.Leap.openSUSE_Leap_15.3_Update_Respin:
group: Leap
lock_behavior: unlockWhenFinished

View File

@ -119,8 +119,38 @@ pipelines:
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org -o openSUSE:Leap:15.3:Update:Respin -t openSUSE:Leap:15.3:Update -s SUSE:SLE-15-SP3:Update
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
<% %w(openSUSE:Leap:15.5 openSUSE:Leap:15.3:Update:Respin).each do |project| -%>
Pkglistgen.openSUSE_Leap_15.4_CR:
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 40 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- pkglistgen:
approval:
type: manual
jobs:
<% ['openSUSE:Leap:15.4:Images/target'].each do |project|
project=project.split('/')
name=project[0].gsub(':', '_')
if project.size > 1
options=" -s #{project[1]}"
name = name + "_#{project[1]}"
end
-%>
<%= name %>:
resources:
- repo-checker
tasks:
- script: python3 ./skippkg-finder.py -A https://api.opensuse.org -o openSUSE:Leap:15.4:Images -t openSUSE:Leap:15.4:Update -s SUSE:SLE-15-SP4:Update
- script: python3 ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
<% %w(openSUSE:Leap:15.5 openSUSE:Leap:15.4:Images openSUSE:Leap:15.3:Update:Respin).each do |project| -%>
Update.Repos.Leap.<%= project.gsub(':', '_') %>:
group: Leap
lock_behavior: unlockWhenFinished