blob: f1c03fb9a565b4ad897901002b3f9fd541f9dc60 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001classes:
2 - system_extra.jenkins.client.job.common
3
4parameters:
5 jenkins:
6 client:
7 job_template:
8 aptly:
9 name: aptly-{{operation}}-{{dist}}-{{source}}-{{target}}
10 jobs:
11 - operation: promote
12 diff_only: false
13 dist: trusty
14 source: nightly
15 target: testing
16 - operation: promote
17 dist: trusty
18 source: testing
19 target: stable
20 - operation: promote
21 dist: xenial
22 source: nightly
23 target: testing
24 - operation: promote
25 dist: xenial
26 source: testing
27 target: stable
28 - operation: diff
29 diff_only: true
30 dist: trusty
31 source: nightly
32 target: testing
33 - operation: diff
34 diff_only: true
35 dist: trusty
36 source: testing
37 target: stable
38 - operation: diff
39 diff_only: true
40 dist: xenial
41 source: nightly
42 target: testing
43 - operation: diff
44 diff_only: true
45 dist: xenial
46 source: testing
47 target: stable
48 template:
49 discard:
50 build:
51 keep_num: 25
52 artifact:
53 keep_num: 25
54 type: workflow-scm
55 concurrent: false
56 scm:
57 type: git
58 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
59 credentials: "gerrit"
60 script: aptly-promote-pipeline.groovy
61 param:
62 SOURCE:
63 type: string
64 default: "{{dist}}/{{source}}"
65 TARGET:
66 type: string
67 default: "{{dist}}/{{target}}"
68 RECREATE:
69 type: boolean
70 default: 'false'
71 DIFF_ONLY:
72 type: boolean
73 default: '{{diff_only}}'
74 APTLY_URL:
75 type: string
76 default: "${_param:jenkins_aptly_api_url}"