-
Notifications
You must be signed in to change notification settings - Fork 95
/
pkglistgen.opensuse.gocd.yaml.erb
82 lines (82 loc) · 2.69 KB
/
pkglistgen.opensuse.gocd.yaml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
group: Factory
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:Factory/target', 'openSUSE:Factory/ring1', 'openSUSE:Factory:ARM/target', 'openSUSE:Factory:ARM/ring1', 'openSUSE:Factory:LegacyX86/target', 'openSUSE:Factory:PowerPC', 'openSUSE:Factory:zSystems', 'openSUSE:Factory:RISCV'].each do |project|
project=project.split('/')
name=project[0].gsub(':', '_')
if project.size > 1
options=" -s #{project[1]}"
name = name + "_#{project[1]}"
else
options=" -s target"
end
-%>
<%= name %>:
resources:
- repo-checker
tasks:
- script: |
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %> --only-release-packages --force
python3 -u ./pkglistgen.py -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %><%= options %>
<% end -%>
Update.Repos.Factory:
group: Factory
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 21 ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
<% %w(openSUSE:Factory openSUSE:Factory:ARM openSUSE:Factory:PowerPC openSUSE:Factory:RISCV).each do |project| -%>
<%= project.gsub(':', '_') %>:
resources:
- repo-checker
tasks:
- script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %>
<% end -%>
Update.Repos.Leap_16_0:
group: Leap
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 21 ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
<% %w(openSUSE:Leap:16.0).each do |project| -%>
<%= project.gsub(':', '_') %>:
resources:
- repo-checker
tasks:
- script: python3 -u ./pkglistgen.py --apiurl https://api.opensuse.org handle_update_repos <%= project %>
<% end -%>