blob: 109cdac66ad9404fd57111531a75604b96b0294c [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: ""
Jakub Josefa27f0312018-04-18 12:07:41 +02004 jenkins_docker_registry_credentials: "mirantis-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"
Jakub Josef7938b532017-12-12 18:02:03 +010026 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020027 credentials: "gerrit"
28 script: docker-build-image-pipeline.groovy
29 trigger:
30 reverse:
31 projects:
32 - build-debian-python-flask-hello-ubuntu-trusty
Filip Pytloun35ca3622017-06-30 10:45:02 +020033 state: UNSTABLE
Filip Pytloun1663cb72017-06-29 12:47:10 +020034 param:
35 IMAGE_NAME:
36 type: string
Jakub Josefa27f0312018-04-18 12:07:41 +020037 default: "mirantis/{{name}}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020038 IMAGE_GIT_URL:
39 type: string
Filip Pytloun7aab6182017-06-30 12:18:11 +020040 default: "${_param:jenkins_gerrit_url}/mk/python-flask-hello"
Filip Pytloun74f25c22017-06-30 17:35:53 +020041 IMAGE_BUILD_PARAMS:
42 type: string
Filip Pytloun4cc79052017-07-03 11:49:22 +020043 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 +020044 IMAGE_BRANCH:
45 type: string
46 default: "{{branch}}"
47 IMAGE_CREDENTIALS_ID:
48 type: string
49 default: "gerrit"
50 IMAGE_TAGS:
51 type: string
52 default: "{{tags}}"
53 DOCKERFILE_PATH:
54 type: string
55 default: "{{dockerfile}}"
56 REGISTRY_URL:
57 type: string
Filip Pytloun4e52d6f2017-06-30 17:42:22 +020058 default: "${_param:jenkins_docker_registry_url}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020059 REGISTRY_CREDENTIALS_ID:
60 type: string
Filip Pytloun74f25c22017-06-30 17:35:53 +020061 default: "${_param:jenkins_docker_registry_credentials}"
Filip Pytloun1663cb72017-06-29 12:47:10 +020062 DOCKER_GIT_TAG:
63 type: boolean
64 default: "true"