Add testing docker builds
Change-Id: I8a16bf19487e27637205f2bd4e095c95b63fb85d
diff --git a/jenkins/client/job/docker/testing.yml b/jenkins/client/job/docker/testing.yml
new file mode 100644
index 0000000..2f9177d
--- /dev/null
+++ b/jenkins/client/job/docker/testing.yml
@@ -0,0 +1,56 @@
+parameters:
+ jenkins:
+ client:
+ job_template:
+ docker-build-image-testing:
+ name: docker-build-image-{{name}}-{{branch}}
+ jobs:
+ - name: python-flask-hello
+ branch: "master"
+ tags: "latest"
+ dockerfile: "Dockerfile"
+ template:
+ discard:
+ build:
+ keep_num: 5
+ artifact:
+ keep_num: 5
+ type: workflow-scm
+ concurrent: true
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
+ credentials: "gerrit"
+ script: docker-build-image-pipeline.groovy
+ trigger:
+ reverse:
+ projects:
+ - build-debian-python-flask-hello-ubuntu-trusty
+ param:
+ IMAGE_NAME:
+ type: string
+ default: "tcpcloud/{{name}}"
+ IMAGE_GIT_URL:
+ type: string
+ default: "https://github.com/tcpcloud/python-flask-hello.git"
+ IMAGE_BRANCH:
+ type: string
+ default: "{{branch}}"
+ IMAGE_CREDENTIALS_ID:
+ type: string
+ default: "gerrit"
+ IMAGE_TAGS:
+ type: string
+ default: "{{tags}}"
+ DOCKERFILE_PATH:
+ type: string
+ default: "{{dockerfile}}"
+ REGISTRY_URL:
+ type: string
+ default: ""
+ REGISTRY_CREDENTIALS_ID:
+ type: string
+ default: "dockerhub"
+ DOCKER_GIT_TAG:
+ type: boolean
+ default: "true"