Add openstack clean-up cron, simplify ci-job defs 68/68/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 19 Apr 2019 21:52:59 +0000 (14:52 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 19 Apr 2019 21:52:59 +0000 (14:52 -0700)
* Enable the gerrit-openstack-cron job to help manage cleaning up
  no-longer use images
* Make the ci-jobs defs a little easier to add additional projects to
  with and anchor pattern

Change-Id: I3369e5a2275bc8a1270c94736822c9d2958924ed
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jjb/ci-management/ci-jobs.yaml

index de5f2c1..df65f39 100644 (file)
@@ -1,13 +1,32 @@
 ---
+- ci_jobs_common: &ci_jobs_common
+    name: ci-jobs-common
+    # Defines common ci-jobs configuration
+
+    project: ci-management
+    project-name: ci-management
+    build-node: centos7-builder-1c-1g
+
 - project:
     name: ci-jobs
 
     jobs:
       - '{project-name}-ci-jobs'
 
-    project: ci-management
-    project-name: ci-management
-    build-node: centos7-builder-1c-1g
+    <<: *ci_jobs_common
 
     views:
       - project-view
+
+- project:
+    name: openstack-cron
+
+    jobs:
+      - gerrit-openstack-cron
+
+    <<: *ci_jobs_common
+
+    jenkins-urls: >
+        https://jenkins.oran-osc.org/
+        https://jenkins.oran-osc.org/sandbox
+    openstack-cloud: vex