blob: c7fb4d0822814193a2e0b461a7bbdd86b6d5b29b [file] [log] [blame]
Jakub Josef733f2942017-05-03 14:38:29 +02001parameters:
2 jenkins:
3 client:
4 job_template:
5 build-debian-heat-resources:
6 name: build-debian-{{name}}-{{os}}-{{dist}}
7 jobs:
8 # Trusty
9 - name: heat-resource-salt
10 os: ubuntu
11 dist: trusty
12 branch: master
13 # Xenial
14 - name: heat-resource-salt
15 os: ubuntu
16 dist: xenial
17 branch: master
18 template:
19 discard:
20 build:
21 keep_num: 10
22 artifact:
23 keep_num: 10
24 type: workflow-scm
25 concurrent: false
26 scm:
27 type: git
28 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
29 credentials: "gerrit"
30 script: build-debian-packages-pipeline.groovy
31 trigger:
32 gerrit:
33 project:
34 salt-formulas/{{name}}:
35 branches:
36 - "{{branch}}"
37 message:
38 build_successful: "Build successful"
39 build_unstable: "Build unstable"
40 build_failure: "Build failed"
41 event:
42 ref:
43 - updated
44 param:
45 SOURCE_URL:
46 type: string
47 default: "git@github.com:salt-formulas/heat-resource-salt.git"
48 SOURCE_BRANCH:
49 type: string
50 default: "{{branch}}"
51 SOURCE_CREDENTIALS:
52 type: string
53 default: ""
54 DEBIAN_SNAPSHOT:
55 type: boolean
56 default: 'true'
57 REVISION_POSTFIX:
58 type: string
59 default: '~{{dist}}1'
60 EXTRA_REPO_URL:
61 type: string
62 default: "deb ${_param:jenkins_aptly_url}/{{dist}}/ testing extra"
63 EXTRA_REPO_KEY_URL:
64 type: string
65 default: "${_param:jenkins_aptly_url}/public.gpg"
66 APTLY_URL:
67 type: string
68 default: "${_param:jenkins_aptly_api_url}"
69 APTLY_REPO:
70 type: string
71 default: "{{os}}-{{dist}}"
72 OS:
73 type: string
74 default: "{{os}}"
75 DIST:
76 type: string
77 default: "{{dist}}"
78 ARCH:
79 type: string
80 default: "amd64"
81 UPLOAD_APTLY:
82 type: boolean
83 default: 'true'