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 |
| 29 | param: |
| 30 | IMAGE_NAME: |
| 31 | type: string |
| 32 | default: "tcpcloud/{{name}}" |
| 33 | IMAGE_GIT_URL: |
| 34 | type: string |
| 35 | default: "https://github.com/tcpcloud/python-flask-hello.git" |
| 36 | IMAGE_BRANCH: |
| 37 | type: string |
| 38 | default: "{{branch}}" |
| 39 | IMAGE_CREDENTIALS_ID: |
| 40 | type: string |
| 41 | default: "gerrit" |
| 42 | IMAGE_TAGS: |
| 43 | type: string |
| 44 | default: "{{tags}}" |
| 45 | DOCKERFILE_PATH: |
| 46 | type: string |
| 47 | default: "{{dockerfile}}" |
| 48 | REGISTRY_URL: |
| 49 | type: string |
| 50 | default: "" |
| 51 | REGISTRY_CREDENTIALS_ID: |
| 52 | type: string |
| 53 | default: "dockerhub" |
| 54 | DOCKER_GIT_TAG: |
| 55 | type: boolean |
| 56 | default: "true" |