Configure Sweetcomb archive artifacts 37/19937/1
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Mon, 3 Jun 2019 20:06:37 +0000 (15:06 -0500)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Mon, 3 Jun 2019 20:06:37 +0000 (15:06 -0500)
Configuring the Sweetcomb artifacts to archive to https://logs.fd.io/
instead of Jenkins

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

index ea8bd76..68cbbf1 100644 (file)
@@ -1,3 +1,4 @@
+---
 # GLOBAL jenkins defaults
 
 - defaults:
@@ -15,6 +16,7 @@
     gerrit-server-name: Primary
     jenkins-ssh-credential: jenkins-gerrit-credentials
     lftools-version: <1.0.0
+    archive-artifacts: ''
 
     # fd.io branch defaults
     branch: master
index 51fcb18..e0db408 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}'
           stream: '{stream}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
+
 
     scm:
       - gerrit-trigger-scm: