Add docker jobs to distribution 06/101706/2
authorLuis Gomez <ecelgp@gmail.com>
Sun, 3 Jul 2022 19:06:33 +0000 (12:06 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Sun, 3 Jul 2022 19:29:39 +0000 (12:29 -0700)
Now that we know how to build docker images, we want to move
this process from the packaging repo to the project repos.

Change-Id: Ia6c1edb88c1ad06b5549e7c2a2993ceaeb9a93c6
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/distribution/distribution-jobs.yaml

index 5b0d208a0862ed018645a845d165d8cee1db5d3e..2e7b6b22c441733db0d7ca69cae61b2d55c4792a 100644 (file)
 
     project: "integration/distribution"
     project-name: "distribution"
+    use-release-file: false
     mvn-goals: "clean deploy -f opendaylight/pom.xml"
     mvn-settings: "integration-distribution-settings"
     mvn-opts: "-Xmx1024m"
     sonarcloud-api-token: "{sonarcloud_api_token}"
     sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
 
+- project:
+    name: distribution-docker
+    project: integration/distribution
+    project-name: distribution
+    mvn-settings: integration-distribution-settings
+    container-tag-method: yaml-file
+    build-node: centos7-docker-4c-4g
+    docker-name: "opendaylight/opendaylight"
+    docker-root: "$WORKSPACE/docker"
+    docker-build-args: "--network=host"
+    container-public-registry: nexus3.opendaylight.org:10001
+    container-push-registry: nexus3.opendaylight.org:10003
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: "docker/.*"
+    jobs:
+      - "{project-name}-gerrit-docker-jobs"
+    stream:
+      - chlorine:
+          branch: "master"
+      - sulfur:
+          branch: "stable/sulfur"
+      - phosphorus:
+          branch: "stable/phosphorus"
+
+- project:
+    name: distribution-docker-release
+    project: integration/distribution
+    project-name: distribution-docker
+    use-release-file: true
+    mvn-settings: integration-distribution-settings
+    container-tag-method: yaml-file
+    build-node: centos7-docker-4c-4g
+    jobs:
+      - "{project-name}-gerrit-release-jobs"
+
 - project:
     name: distribution-view
     views: