Add docker build jobs for images in it/dev 34/2934/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 23 Mar 2020 21:53:14 +0000 (17:53 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Tue, 24 Mar 2020 14:17:31 +0000 (10:17 -0400)
Migrate builder image job definitions from ci-management repo
to it/dev repo.

Issue-ID: INT-108
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ibf0841e5fc93740068af63e4334726ec0fc753b0

jjb/it-dev/it-dev-docker.yaml [new file with mode: 0644]

diff --git a/jjb/it-dev/it-dev-docker.yaml b/jjb/it-dev/it-dev-docker.yaml
new file mode 100644 (file)
index 0000000..950bb74
--- /dev/null
@@ -0,0 +1,52 @@
+---
+# Job configurations for base docker build images
+
+# This macro factors out common configuration
+- it_dev_docker_common: &it_dev_docker_common
+    name: it-dev-docker-common
+    # git repo
+    project: it/dev
+    # maven settings file has docker credentials
+    mvn-settings: it-dev-settings
+    # build every Saturday
+    cron: 'H H * * 6'
+    # use host network to clone from our gerrit
+    docker-build-args: '--network=host'
+    # get tag from YAML
+    container-tag-method: yaml-file
+    # Jenkins job prefix
+    project-name: 'it-dev-{img}'
+    # Docker image name
+    docker-name: '{img}'
+    # Directory with Dockerfile
+    docker-root: 'docker/{img}'
+    # Limit build trigger to appropriate files;
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'bldr-imgs/{img}/.*'
+    # Includes verify and merge jobs
+    jobs:
+      - '{project-name}-gerrit-docker-jobs'
+    # Only build master branch
+    stream:
+      - master:
+          branch: master
+
+# Each project name is a subdirectory in bldr-images
+# with a Dockerfile and a container-tag.yaml file
+# TODO: coalesce name+img after removing projects from ci-management
+
+- project:
+    name: it-dev-alpine3
+    img: bldr-alpine3
+    <<: *it_dev_docker_common
+
+- project:
+    name: it-dev-alpine3-go
+    img: bldr-alpine3-go
+    <<: *it_dev_docker_common
+
+- project:
+    name: it-dev-ubuntu18-c-go
+    img: bldr-ubuntu18-c-go
+    <<: *it_dev_docker_common