Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job_template: |
| 5 | docker-build-image-testing: |
| 6 | name: docker-build-image-{{name}}-{{branch}} |
| 7 | jobs: |
| 8 | - name: python-flask-hello |
| 9 | branch: "master" |
| 10 | tags: "latest" |
| 11 | dockerfile: "Dockerfile" |
| 12 | template: |
| 13 | discard: |
| 14 | build: |
| 15 | keep_num: 5 |
| 16 | artifact: |
| 17 | keep_num: 5 |
| 18 | type: workflow-scm |
| 19 | concurrent: true |
| 20 | scm: |
| 21 | type: git |
| 22 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 23 | credentials: "gerrit" |
| 24 | script: docker-build-image-pipeline.groovy |
| 25 | trigger: |
| 26 | reverse: |
| 27 | projects: |
| 28 | - build-debian-python-flask-hello-ubuntu-trusty |
Filip Pytloun | 35ca362 | 2017-06-30 10:45:02 +0200 | [diff] [blame] | 29 | state: UNSTABLE |
Filip Pytloun | 1663cb7 | 2017-06-29 12:47:10 +0200 | [diff] [blame] | 30 | param: |
| 31 | IMAGE_NAME: |
| 32 | type: string |
| 33 | default: "tcpcloud/{{name}}" |
| 34 | IMAGE_GIT_URL: |
| 35 | type: string |
| 36 | default: "https://github.com/tcpcloud/python-flask-hello.git" |
| 37 | IMAGE_BRANCH: |
| 38 | type: string |
| 39 | default: "{{branch}}" |
| 40 | IMAGE_CREDENTIALS_ID: |
| 41 | type: string |
| 42 | default: "gerrit" |
| 43 | IMAGE_TAGS: |
| 44 | type: string |
| 45 | default: "{{tags}}" |
| 46 | DOCKERFILE_PATH: |
| 47 | type: string |
| 48 | default: "{{dockerfile}}" |
| 49 | REGISTRY_URL: |
| 50 | type: string |
| 51 | default: "" |
| 52 | REGISTRY_CREDENTIALS_ID: |
| 53 | type: string |
| 54 | default: "dockerhub" |
| 55 | DOCKER_GIT_TAG: |
| 56 | type: boolean |
| 57 | default: "true" |