From d89c72fbcb94f1a8e2cea5fac38ce22aa1803dad Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Wed, 21 May 2014 12:53:43 +1000 Subject: [PATCH] Add slavescript to grab console log The console logs are at http://buildserver/jenkins/job/MyJobName/666/consoleText Add in a shell script to grab the console log using $BUILD_URL (https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables) Change-Id: I481fdec77d42918a68ba13645912704948f86a36 --- modules/jenkins/files/slave_scripts/grab_console_log.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 modules/jenkins/files/slave_scripts/grab_console_log.sh diff --git a/modules/jenkins/files/slave_scripts/grab_console_log.sh b/modules/jenkins/files/slave_scripts/grab_console_log.sh new file mode 100755 index 0000000000..7224896d83 --- /dev/null +++ b/modules/jenkins/files/slave_scripts/grab_console_log.sh @@ -0,0 +1,6 @@ +#!/bin/bash -xe + +echo "Grabbing consoleLog" + +$console_log_path='consoleText' +wget -P /tmp --no-check-certificate $BUILD_URL$console_log_path