Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 74f25c2 | 2017-06-30 17:35:53 +0200 | [diff] [blame] | 2 | _param: |
| 3 | jenkins_docker_registry_url: "" |
Jakub Josef | a27f031 | 2018-04-18 12:07:41 +0200 | [diff] [blame] | 4 | jenkins_docker_registry_credentials: "mirantis-dockerhub" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job_template: |
| 8 | docker-build-image-testing: |
| 9 | name: docker-build-image-{{name}}-{{branch}} |
| 10 | jobs: |
| 11 | - name: python-flask-hello |
| 12 | branch: "master" |
| 13 | tags: "latest" |
| 14 | dockerfile: "Dockerfile" |
| 15 | template: |
| 16 | discard: |
| 17 | build: |
| 18 | keep_num: 5 |
| 19 | artifact: |
| 20 | keep_num: 5 |
| 21 | type: workflow-scm |
| 22 | concurrent: true |
| 23 | scm: |
| 24 | type: git |
| 25 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 26 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 27 | credentials: "gerrit" |
| 28 | script: docker-build-image-pipeline.groovy |
| 29 | trigger: |
| 30 | reverse: |
| 31 | projects: |
| 32 | - build-debian-python-flask-hello-ubuntu-trusty |
Filip Pytloun | 35ca362 | 2017-06-30 10:45:02 +0200 | [diff] [blame] | 33 | state: UNSTABLE |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 34 | param: |
| 35 | IMAGE_NAME: |
| 36 | type: string |
Jakub Josef | a27f031 | 2018-04-18 12:07:41 +0200 | [diff] [blame] | 37 | default: "mirantis/{{name}}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 38 | IMAGE_GIT_URL: |
| 39 | type: string |
Filip Pytloun | 7aab618 | 2017-06-30 12:18:11 +0200 | [diff] [blame] | 40 | default: "${_param:jenkins_gerrit_url}/mk/python-flask-hello" |
Filip Pytloun | 74f25c2 | 2017-06-30 17:35:53 +0200 | [diff] [blame] | 41 | IMAGE_BUILD_PARAMS: |
| 42 | type: string |
Filip Pytloun | 4cc7905 | 2017-07-03 11:49:22 +0200 | [diff] [blame] | 43 | default: "--build-arg apt_repository='deb [arch=amd64] ${_param:jenkins_aptly_url}/trusty/ nightly extra' --build-arg apt_key_url=${_param:jenkins_aptly_url}/public.gpg --no-cache" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 44 | IMAGE_BRANCH: |
| 45 | type: string |
| 46 | default: "{{branch}}" |
| 47 | IMAGE_CREDENTIALS_ID: |
| 48 | type: string |
| 49 | default: "gerrit" |
| 50 | IMAGE_TAGS: |
| 51 | type: string |
| 52 | default: "{{tags}}" |
| 53 | DOCKERFILE_PATH: |
| 54 | type: string |
| 55 | default: "{{dockerfile}}" |
| 56 | REGISTRY_URL: |
| 57 | type: string |
Filip Pytloun | 4e52d6f | 2017-06-30 17:42:22 +0200 | [diff] [blame] | 58 | default: "${_param:jenkins_docker_registry_url}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 59 | REGISTRY_CREDENTIALS_ID: |
| 60 | type: string |
Filip Pytloun | 74f25c2 | 2017-06-30 17:35:53 +0200 | [diff] [blame] | 61 | default: "${_param:jenkins_docker_registry_credentials}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 62 | DOCKER_GIT_TAG: |
| 63 | type: boolean |
| 64 | default: "true" |