specs/stx-jv.rbspec
changeset 63 0754faf5dad0
parent 54 a169d82bb0b0
child 64 02c00e68d367
--- a/specs/stx-jv.rbspec	Tue Oct 25 10:11:59 2016 +0100
+++ b/specs/stx-jv.rbspec	Wed Oct 26 13:06:28 2016 +0000
@@ -260,12 +260,15 @@
 
   # Define a "default" test suite, i.e., a set of tests that are run when
   # user does `rake test`. 
-  # The test suite is defined conditionally only when not running under Jenkins. 
+  # The test suite is defined conditionally only when not running under SWING Jenkins. 
   # Though this is hacky, I'd like a Jenkins job to build exactly the same 
   # project as user to make sure they're in sync. However, under Jenkins I don't
   # want them to run - for running tests we have other jobs which run them under
   # different configurations. 
-  if not jenkins? then
+  #
+  # This hack will go as soon as SWING Jenkins will switch to pipeline
+  #
+  if (ENV['USER'] != 'builder') and (ENV['USERNAME'] != 'builder') then
     package 'stx:libview/tests', :test => true;
     package 'stx:libjava', :test => true;
     package 'stx:libjava/tools', :test => true;