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: "" |
| 4 | jenkins_docker_registry_credentials: "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" |
| 26 | credentials: "gerrit" |
| 27 | script: docker-build-image-pipeline.groovy |
| 28 | trigger: |
| 29 | reverse: |
| 30 | projects: |
| 31 | - build-debian-python-flask-hello-ubuntu-trusty |
Filip Pytloun | 35ca362 | 2017-06-30 10:45:02 +0200 | [diff] [blame] | 32 | state: UNSTABLE |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 33 | param: |
| 34 | IMAGE_NAME: |
| 35 | type: string |
| 36 | default: "tcpcloud/{{name}}" |
| 37 | IMAGE_GIT_URL: |
| 38 | type: string |
Filip Pytloun | 7aab618 | 2017-06-30 12:18:11 +0200 | [diff] [blame] | 39 | default: "${_param:jenkins_gerrit_url}/mk/python-flask-hello" |
Filip Pytloun | 74f25c2 | 2017-06-30 17:35:53 +0200 | [diff] [blame] | 40 | IMAGE_BUILD_PARAMS: |
| 41 | type: string |
Filip Pytloun | 4cc7905 | 2017-07-03 11:49:22 +0200 | [diff] [blame] | 42 | 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] | 43 | IMAGE_BRANCH: |
| 44 | type: string |
| 45 | default: "{{branch}}" |
| 46 | IMAGE_CREDENTIALS_ID: |
| 47 | type: string |
| 48 | default: "gerrit" |
| 49 | IMAGE_TAGS: |
| 50 | type: string |
| 51 | default: "{{tags}}" |
| 52 | DOCKERFILE_PATH: |
| 53 | type: string |
| 54 | default: "{{dockerfile}}" |
| 55 | REGISTRY_URL: |
| 56 | type: string |
Filip Pytloun | 4e52d6f | 2017-06-30 17:42:22 +0200 | [diff] [blame] | 57 | default: "${_param:jenkins_docker_registry_url}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 58 | REGISTRY_CREDENTIALS_ID: |
| 59 | type: string |
Filip Pytloun | 74f25c2 | 2017-06-30 17:35:53 +0200 | [diff] [blame] | 60 | default: "${_param:jenkins_docker_registry_credentials}" |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 61 | DOCKER_GIT_TAG: |
| 62 | type: boolean |
| 63 | default: "true" |