summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-06-26 12:17:34 +0200
committerHolger Levsen <holger@layer-acht.org>2016-06-26 12:37:49 +0200
commitce482092c94ac24412932c624de45a70585e1e31 (patch)
tree1b854b0a4e6bbfaf6b2ba6ae764bfa98c0336685
parent67060e4d86929e0b36019a4af2da2f0082c93c96 (diff)
downloadjenkins.debian.net-ce482092c94ac24412932c624de45a70585e1e31.tar.xz
lvc: retrieve artifacts (1st attempt)
-rwxr-xr-xbin/lvc_retreive_artifacts.sh14
-rw-r--r--job-cfg/lvc.yaml44
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 00000000..4ec30577
--- /dev/null
+++ b/bin/lvc_retreive_artifacts.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Copyright 2015 Holger Levsen <holger@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 aed51481..1d2cd777 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@lists.alioth.debian.org, phil@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'