Modify Sweetcomb jobs to archive to the logs server 60/19960/1
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Tue, 4 Jun 2019 16:44:20 +0000 (11:44 -0500)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Tue, 4 Jun 2019 16:44:20 +0000 (11:44 -0500)
Modified the jobs to archive to the logs server and removed the
duplicate publisher lines.

Change-Id: Idc058725ae6e8bdfcc6754b5049078ffad5168b0
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
jjb/sweetcomb/sweetcomb.yaml

index 5b67481..9be3f05 100644 (file)
       artifactDaysToKeep: '{build-artifact-days-to-keep}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
+      archive-artifacts: >
+          **/build-root/build-package/*.rpm
+          **/build-root/build-package/*.deb
+      allow-empty: 'true'
+      fingerprint: false
+      only-if-success: true
+      default-excludes: false
+
     parameters:
       - project-parameter:
           project: '{project}'
           repo-name: '{repo-stream-part}.{repo-os-part}'
       - stream-parameter:
           stream: '{stream}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           !include-raw-escape:
           - include-raw-sweetcomb-build.sh
     publishers:
-      - archive:
-          artifacts: >
-            **/build-root/build-package/*.rpm,
-            **/build-root/build-package/*.deb,
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
       - fdio-infra-shiplogs:
           maven-version: 'mvn33-new'
       - naginator:
           max-failed-builds: 1
           fixed-delay: 90
 
-    publishers:
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
-
 - job-template:
     name: 'sweetcomb-merge-{stream}-{os}'
 
           default: '{archive-artifacts}'
           description: Artifacts to archive to the logs server.
 
-
     scm:
       - gerrit-trigger-scm:
           credentials-id: 'jenkins-gerrit-credentials'
           !include-raw-escape:
           - ../scripts/packagecloud_push.sh
     publishers:
-      - archive:
-          artifacts: >
-            **/build-root/build-package/*.rpm,
-            **/build-root/build-package/*.deb,
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
       - fdio-infra-shiplogs:
           maven-version: 'mvn33-new'
       - naginator:
       artifactDaysToKeep: '{build-artifact-days-to-keep}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
+    archive-artifacts: >
+    allow-empty: 'true'
+    fingerprint: false
+    only-if-success: true
+    default-excludes: false
+
     parameters:
       - project-parameter:
           project: '{project}'
           - include-raw-sweetcomb-build.sh
           - include-raw-sweetcomb-test.sh
     publishers:
-      - archive:
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
       - fdio-infra-shiplogs:
           maven-version: 'mvn33-new'
       - naginator:
           rerun-unstable-builds: false
           max-failed-builds: 1
           fixed-delay: 90
-
-    publishers:
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'