blob: bf65dbcb932fb327e8585b0d7b961c3051b9a4f5 [file] [log] [blame]
Filip Pytloun1663cb72017-06-29 12:47:10 +02001parameters:
Filip Pytloun74f25c22017-06-30 17:35:53 +02002 _param:
3 jenkins_docker_registry_url: ""
4 jenkins_docker_registry_credentials: "dockerhub"
Filip Pytloun1663cb72017-06-29 12:47:10 +02005 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 Pytloun35ca3622017-06-30 10:45:02 +020032 state: UNSTABLE
Filip Pytloun1663cb72017-06-29 12:47:10 +020033 param:
34 IMAGE_NAME:
35 type: string
36 default: "tcpcloud/{{name}}"
37 IMAGE_GIT_URL:
38 type: string
Filip Pytloun7aab6182017-06-30 12:18:11 +020039 default: "${_param:jenkins_gerrit_url}/mk/python-flask-hello"
Filip Pytloun74f25c22017-06-30 17:35:53 +020040 IMAGE_BUILD_PARAMS:
41 type: string
Filip Pytloun4cc79052017-07-03 11:49:22 +020042 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 Pytloun1663cb72017-06-29 12:47:10 +020043 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 Pytloun4e52d6f2017-06-30 17:42:22 +020057 default: "${_param:jenkins_docker_registry_url}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020058 REGISTRY_CREDENTIALS_ID:
59 type: string
Filip Pytloun74f25c22017-06-30 17:35:53 +020060 default: "${_param:jenkins_docker_registry_credentials}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020061 DOCKER_GIT_TAG:
62 type: boolean
63 default: "true"