blob: 00411fb3fda87e17a824b9605cc714782da6cb89 [file] [log] [blame]
parameters:
jenkins:
client:
view:
Docker:
enabled: true
type: ListView
include_regex: ".*docker.*"
job_template:
docker-build-image:
name: docker-build-image-{{name}}-{{branch}}
jobs:
- name: gerrit
branch: "2.12.7"
tags: "2.12.7"
dockerfile: "Dockerfile"
- name: gerrit
branch: "2.13.6"
tags: "2.13.6"
dockerfile: "Dockerfile"
- name: gerrit
branch: "2.14.6"
tags: "2.14.6 latest"
dockerfile: "Dockerfile"
- name: jenkins
branch: "master"
tags: ""
dockerfile: "Dockerfile"
- name: jenkins
branch: "2.32.3"
tags: "2.32"
dockerfile: "Dockerfile"
- name: jenkins
branch: "2.73"
tags: "2.73"
dockerfile: "Dockerfile"
- name: phpldapadmin
branch: "master"
tags: "latest"
dockerfile: "image/Dockerfile"
- name: openldap
branch: "master"
tags: "latest"
dockerfile: "image/Dockerfile"
- name: mysql
branch: "master"
tags: "5.6 latest"
dockerfile: "5.6/Dockerfile"
- name: jnlp-slave
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"
branch: "${_param:jenkins_pipelines_branch}"
credentials: "gerrit"
script: docker-build-image-pipeline.groovy
trigger:
gerrit:
project:
"mk/docker-{{name}}":
branches:
- "{{branch}}"
event:
ref:
- updated: {}
param:
IMAGE_NAME:
type: string
default: "mirantis/{{name}}"
IMAGE_GIT_URL:
type: string
default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
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: "mirantis-dockerhub"
ARTIFACTORY_URL:
type: string
default: "docker-dev-virtual.docker.mirantis.net"
description: "URL to artifactory"
ARTIFACTORY_NAMESPACE:
type: string
default: cicd
description: "Artifactory namespace (oss, cicd,...)"
DOCKER_GIT_TAG:
type: boolean
default: "true"