Add triggers to UDS Build Job 87/5587/4
authormatthew-mcneilly <matthew.mcneilly@est.tech>
Thu, 30 Jul 2020 14:36:38 +0000 (15:36 +0100)
committermatthew-mcneilly <matthew.mcneilly@est.tech>
Fri, 31 Jul 2020 08:26:50 +0000 (09:26 +0100)
Added triggers when changes merged into sdc and sdc-custom repos
Skip unit tests in build by default until these pass
Follow on change for
https://gerrit.nordix.org/#/c/infra/cicd/+/5154/

Signed-off-by: matthew-mcneilly <matthew.mcneilly@est.tech>
Change-Id: I251e171f6f20ab4819b00b17b757ab7104de64bf

jjb/onap/uds/uds-daily-build-package-promote.yaml
jjb/onap/uds/uds-macros.yaml

index 95f07687a6b483ccac65f82244859abfa7faf71f..abb60204177b68345114f8484f72141c736cb042 100644 (file)
@@ -24,6 +24,8 @@
     branches: 20.2, master
     project_directories: sdc, sdc-customization
     project_versions:
+    mvn_params: '-DskipTests -Pdocker'
+    # mvn_params: '-DskipTests -Pdocker' # re-enable when unit tests pass
     mvn_settings_xml_version:
     docker_images: '
       uds/sdc-cassandra-init,
@@ -76,6 +78,7 @@
           project_versions: '{project_versions}'
       - git-parameters
       - maven-parameters:
+          mvn_params: '{mvn_params}'
           mvn_settings_xml_version: '{mvn_settings_xml_version}'
       - artifact_parameters:
           artifact_paths: '{artifact_paths}'
               property-file: $WORKSPACE/build.properties
     triggers:
       - timed: "@midnight"
+      - gerrit:
+          server-name: 'Nordix Gerrit'
+          trigger-on:
+            - change-merged-event
+            - comment-added-contains-event:
+                comment-contains-value: 'remerge'
+          projects:
+            - project-compare-type: 'PLAIN'
+              project-pattern: 'onap/sdc'
+              branches:
+                - branch-compare-type: 'PLAIN'
+                  branch-pattern: '20.2'
+            - project-compare-type: 'PLAIN'
+              project-pattern: 'local/onap/uds/sdc-customization'
+              branches:
+                - branch-compare-type: 'PLAIN'
+                  branch-pattern: 'master'
+
     wrappers:
       - openstack:
           single-use: True
index 802643b7a51d63762fbfc831ec5e4e5e03f94a9c..186f6911340db2fb22d43f356d2d50bfe20dd119 100644 (file)
@@ -70,7 +70,7 @@
           description: Path to mvn executable
       - string:
           name: MVN_PARAMS
-          default: -Pdocker
+          default: '{mvn_params}'
           description: Maven build parameters
       - string:
           name: MVN_SETTINGS_XML_VERSION