blob: 147d551cc081509c3c26a438faabefb6f5bc141e [file] [log] [blame]
Filip Pytloun1663cb72017-06-29 12:47:10 +02001parameters:
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 Pytloun35ca3622017-06-30 10:45:02 +020029 state: UNSTABLE
Filip Pytloun1663cb72017-06-29 12:47:10 +020030 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"