Refactor: JJB code
[ci-management.git] / jjb / ci-management / ci-docker.yaml
1 ---
2 # Job configurations for base docker build images
3
4 # This macro factors out common configuration
5 - _ci_docker_common: &ci_docker_common
6     name: ci-docker-common
7     # git repo
8     project: ci-management
9     # maven settings file has docker credentials
10     mvn-settings: ci-management-settings
11     # build every Saturday
12     cron: "H H * * 6"
13     # use host network to clone from our gerrit
14     docker-build-args: "--network=host"
15     # get tag from YAML
16     container-tag-method: yaml-file
17     # name key is overridden by project template
18     # Jenkins job prefix
19     project-name: "{project}-{name}"
20     # Docker image name
21     docker-name: "{name}"
22     # Directory with Dockerfile
23     docker-root: "docker/{name}"
24     # Limit build trigger to appropriate files
25     gerrit_trigger_file_paths:
26       - compare-type: REG_EXP
27         pattern: "docker/{name}/.*"
28     # Includes verify and merge jobs
29     jobs:
30       - "{project-name}-gerrit-docker-jobs"
31     # Only build master branch
32     stream:
33       - master:
34           branch: master
35
36 # Each project name is a subdirectory in ci-management/docker
37 # with a Dockerfile and a container-tag.yaml file
38
39 # This image is deprecated, projects should move to Ubuntu 18
40 # TODO remove entirely
41 - project:
42     name: bldr-ubuntu16-c-go
43     <<: *ci_docker_common