[Fuego] [PATCH 3/3] ftc: run_class: Set value for builddir variable

Hoang Van Tuyen tuyen.hoangvan at toshiba-tsdv.com
Tue Mar 20 07:52:25 UTC 2018


The build.xml and log are stored in ${JENKINS_HOME}/jobs/${NODE_NAME}.
${TESTSPEC}.${TEST_NAME}/builds/${BUILD_NUMBER}. So, set the value of
builddir to this.

Signed-off-by: Hoang Van Tuyen <tuyen.hoangvan at toshiba-tsdv.com>
---
  engine/scripts/ftc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index e4fcfe8..9cd3ee4 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -521,7 +521,7 @@ class run_class:
          self.host = host
          self.board = board
          self.rundir = rundir    # place with run.json file and console log
-        self.builddir = "not set"    # place with build.xml file and 
console log
+        self.builddir = conf.JENKINS_HOME + "/jobs/%s.%s.%s/builds/%s" 
% (board, spec, test_name, num)
          self.logpath = conf.FUEGO_RW+"/logs/%s/%s.%s.%s.%s" % 
(test_name, board, spec, num, num)
          self.num = num          # jenkins local run number
          self.run_id = "%s-%s-%s-%s" % (test_name, spec, num, board)
-- 
2.1.4

-------------- next part --------------
From 4f6743cd907c1e4b5a9227eafc6e60e291e658db Mon Sep 17 00:00:00 2001
From: Hoang Van Tuyen <tuyen.hoangvan at toshiba-tsdv.com>
Date: Mon, 19 Mar 2018 15:35:16 +0700
Subject: [PATCH 3/3] ftc: run_class: Set value for builddir variable

The build.xml and log are stored in ${JENKINS_HOME}/jobs/${NODE_NAME}.
${TESTSPEC}.${TEST_NAME}/builds/${BUILD_NUMBER}. So, set the value of
builddir to this.

Signed-off-by: Hoang Van Tuyen <tuyen.hoangvan at toshiba-tsdv.com>
---
 engine/scripts/ftc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index e4fcfe8..9cd3ee4 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -521,7 +521,7 @@ class run_class:
         self.host = host
         self.board = board
         self.rundir = rundir    # place with run.json file and console log
-        self.builddir = "not set"    # place with build.xml file and console log
+        self.builddir = conf.JENKINS_HOME + "/jobs/%s.%s.%s/builds/%s" % (board, spec, test_name, num)
         self.logpath = conf.FUEGO_RW+"/logs/%s/%s.%s.%s.%s" % (test_name, board, spec, num, num)
         self.num = num          # jenkins local run number
         self.run_id = "%s-%s-%s-%s" % (test_name, spec, num, board)
-- 
2.1.4
-------------- next part --------------
-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com


More information about the Fuego mailing list