blob: 92bdbe0078c0969d5641ae645fd0216b9c31b632 [file] [log] [blame]
Kyrylo Mashchenko0ec09762018-10-26 11:06:48 +00001parameters:
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 branch: "${_param:jenkins_pipelines_branch}"
30 credentials: "gerrit"
31 script: build-debian-packages-pipeline.groovy
32 trigger:
33 gerrit:
34 project:
35 salt-formulas/{{name}}:
36 branches:
37 - "{{branch}}"
38 message:
39 build_successful: "Build successful"
40 build_unstable: "Build unstable"
41 build_failure: "Build failed"
42 event:
43 ref:
44 - updated
45 param:
46 SOURCE_URL:
47 type: string
48 default: "git@github.com:salt-formulas/heat-resource-salt.git"
49 SOURCE_BRANCH:
50 type: string
51 default: "{{branch}}"
52 SOURCE_CREDENTIALS:
53 type: string
54 default: "github-credentials"
55 DEBIAN_SNAPSHOT:
56 type: boolean
57 default: 'true'
58 REVISION_POSTFIX:
59 type: string
60 default: '~{{dist}}1'
61 EXTRA_REPO_URL:
62 type: string
63 default: "deb ${_param:jenkins_aptly_url}/{{dist}}/ testing extra"
64 EXTRA_REPO_KEY_URL:
65 type: string
66 default: "${_param:jenkins_aptly_url}/public.gpg"
67 APTLY_URL:
68 type: string
69 default: "${_param:jenkins_aptly_api_url}"
70 APTLY_REPO:
71 type: string
72 default: "{{os}}-{{dist}}-extra"
73 OS:
74 type: string
75 default: "{{os}}"
76 DIST:
77 type: string
78 default: "{{dist}}"
79 ARCH:
80 type: string
81 default: "amd64"
82 UPLOAD_APTLY:
83 type: boolean
84 default: 'true'
85 PRE_BUILD_SCRIPT:
86 type: text
87 default: |
88 echo "deb http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ mos9.0 main restricted" >> /etc/apt/sources.list.d/extra.list
89 curl --insecure -ss -f "http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/archive-mos9.0.key" | apt-key add -
90 apt-get update
91