[Qa-jenkins-scm] [jenkins.debian.net] 01/01: lvc: retrieve artifacts (1st attempt)

Holger Levsen holger at layer-acht.org
Sun Jun 26 10:38:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit ce482092c94ac24412932c624de45a70585e1e31
Author: Philip Hands <phil at hands.com>
Date:   Sun Jun 26 12:17:34 2016 +0200

    lvc: retrieve artifacts (1st attempt)
---
 bin/lvc_retreive_artifacts.sh | 14 ++++++++++++++
 job-cfg/lvc.yaml              | 44 +++++++++++++++++++++++++++++++++++++++----
 2 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/bin/lvc_retreive_artifacts.sh b/bin/lvc_retreive_artifacts.sh
new file mode 100755
index 0000000..4ec3057
--- /dev/null
+++ b/bin/lvc_retreive_artifacts.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Copyright 2015 Holger Levsen <holger at layer-acht.org>
+# released under the GPLv=2
+
+DEBUG=true
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+# main
+echo "$(date -u) - Starting to rsync results."
+rsync -r -v -e "ssh -o 'Batchmode = yes'" $TRIG_HOST:$TRIG_RESULTS/ $TRIG_RESULTS/
+chmod 775 $RESULTS
+echo "$(date -u) - the end."
diff --git a/job-cfg/lvc.yaml b/job-cfg/lvc.yaml
index aed5148..1d2cd77 100644
--- a/job-cfg/lvc.yaml
+++ b/job-cfg/lvc.yaml
@@ -1,17 +1,17 @@
 - defaults:
     name: lvc
     project-type: freestyle
-    description: '{my_description}<br><br>Job configuration source is <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/tree/job-cfg/lvc.yaml">lvc.yaml</a>.'
+    description: &desc '{my_description}<br><br>Job configuration source is <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/tree/job-cfg/lvc.yaml">lvc.yaml</a>.'
     properties:
-      - sidebar:
+      - sidebar: &sb1
           url: https://jenkins.debian.net/userContent/about.html
           text: About jenkins.debian.net
           icon: /userContent/images/debian-swirl-24x24.png
-      - sidebar:
+      - sidebar: &sb2
           url: https://jenkins.debian.net/view/lvc
           text: Jobs for libvirt and cucumber based tests
           icon: /userContent/images/debian-jenkins-24x24.png
-      - sidebar:
+      - sidebar: &sb3
           url: http://www.profitbricks.co.uk
           text: Sponsored by Profitbricks
           icon: /userContent/images/profitbricks-24x24.png
@@ -45,6 +45,11 @@
       - live-screenshot
     builders:
       - shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh {my_iso} /srv/jenkins/cucumber/features {my_opts}'
+      - trigger-builds:
+          - project: lvc_retreive_artifacts
+            predefined-parameters:
+              TRIG_HOST=$HOST
+              TRIG_WORKDIR=$WORKDIR
     triggers:
       - timed: '{my_time}'
     node: 'lvc'
@@ -53,6 +58,35 @@
     defaults: lvc
     name: '{name}_{distro}'
 
+- job-template:
+    name: '{name}_retreive_artifacts'
+    project-type: freestyle
+    description: *desc
+    properties:
+      - sidebar: *sb1
+      - sidebar: *sb2
+      - sidebar: *sb3
+    parameters:
+      - string:
+          name: TRIG_HOST
+          description: The host that the job triggering this one was running on
+      - string:
+          name: TRIG_RESULTS
+          description: The results directory for the job that triggered this one
+    logrotate:
+      daysToKeep: 90
+      numToKeep: 20
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+    publishers:
+      - email:
+          recipients: 'qa-jenkins-scm at lists.alioth.debian.org, phil at hands.com'
+    wrappers:
+      - live-screenshot
+    builders:
+      - shell: '/srv/jenkins/bin/lvc_retreive_artifacts.sh'
+    node: 'master'
+
 - project:
     name: lvc
     my_title: 'Cucumber: {dist_name}'
@@ -81,3 +115,5 @@
                     my_iso: 'http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso'
                     my_time: 'H H * * H'
                     my_opts: '--tags @broken'
+        - '{name}_retreive_artifacts':
+            my_title: 'Retrieve results from LVC job'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list