chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 1 | parameters: |
2 | jenkins: | ||||
3 | client: | ||||
Jakub Josef | 1916e23 | 2017-05-24 14:27:08 +0200 | [diff] [blame] | 4 | job_template: |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 5 | docker-build-images: |
Jakub Josef | b5f6700 | 2017-05-22 18:45:46 +0200 | [diff] [blame] | 6 | name: "docker-build-images-{{name}}" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 7 | jobs: |
8 | - name: aptly | ||||
chnyda | 7612b91 | 2017-06-19 16:18:09 +0200 | [diff] [blame] | 9 | repo: mk |
chnyda | 62282e7 | 2017-12-19 13:12:06 +0100 | [diff] [blame] | 10 | build_trigger: "" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 11 | - name: ci |
chnyda | 7612b91 | 2017-06-19 16:18:09 +0200 | [diff] [blame] | 12 | repo: mk |
chnyda | 62282e7 | 2017-12-19 13:12:06 +0100 | [diff] [blame] | 13 | build_trigger: "H H(20-23) * * *" |
chnyda | a0ef5af | 2017-06-19 10:42:21 +0200 | [diff] [blame] | 14 | - name: prometheus |
chnyda | 7612b91 | 2017-06-19 16:18:09 +0200 | [diff] [blame] | 15 | repo: mcp |
chnyda | 62282e7 | 2017-12-19 13:12:06 +0100 | [diff] [blame] | 16 | build_trigger: "" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 17 | template: |
18 | discard: | ||||
19 | build: | ||||
20 | keep_num: 25 | ||||
21 | artifact: | ||||
22 | keep_num: 25 | ||||
23 | type: workflow-scm | ||||
24 | concurrent: true | ||||
25 | scm: | ||||
26 | type: git | ||||
chnyda | 7612b91 | 2017-06-19 16:18:09 +0200 | [diff] [blame] | 27 | url: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 28 | credentials: "gerrit" |
29 | trigger: | ||||
30 | gerrit: | ||||
31 | project: | ||||
chnyda | bafee2e | 2017-09-22 16:00:28 +0200 | [diff] [blame] | 32 | "{{repo}}/docker-{{name}}": |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 33 | branches: |
34 | - master | ||||
35 | event: | ||||
36 | ref: | ||||
37 | - updated: {} | ||||
chnyda | 62282e7 | 2017-12-19 13:12:06 +0100 | [diff] [blame] | 38 | pollscm: |
39 | spec: "{{build_trigger}}" | ||||
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 40 | param: |
41 | IMAGE_GIT_URL: | ||||
42 | type: string | ||||
chnyda | 7612b91 | 2017-06-19 16:18:09 +0200 | [diff] [blame] | 43 | default: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 44 | IMAGE_BRANCH: |
45 | type: string | ||||
46 | default: "master" | ||||
47 | IMAGE_CREDENTIALS_ID: | ||||
48 | type: string | ||||
49 | default: "gerrit" | ||||
50 | IMAGE_TAGS: | ||||
51 | type: string | ||||
52 | default: "latest" | ||||
53 | REGISTRY_URL: | ||||
54 | type: string | ||||
55 | default: "" | ||||
56 | REGISTRY_CREDENTIALS_ID: | ||||
57 | type: string | ||||
58 | default: "dockerhub" | ||||
59 | DOCKER_GIT_TAG: | ||||
60 | type: boolean | ||||
61 | default: "true" | ||||
chnyda | 303393e | 2017-09-20 11:46:46 +0200 | [diff] [blame] | 62 | EXTRA_REPO_URL: |
63 | type: string | ||||
64 | default: "${_param:jenkins_aptly_url}" |