From 41dbcf334b1dcfda19004b02513062b15663d8ed Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 17 Dec 2015 17:45:46 +1100 Subject: [PATCH] Fix WORKSPACE environment variable --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 1e3fc6cd7..16972b657 100644 --- a/build.gradle +++ b/build.gradle @@ -116,13 +116,13 @@ uploadArchives { println "--------------------" def list = [] - def dir = new File("${WORKSPACE}/build/libs") + def dir = new File("${System.env.WORKSPACE}/build/libs") dir.eachFileRecurse (FileType.FILES) { file -> //Add each file to the list list << file } - //Print the names of all of the files + //Print the names of all of the output files list.each { println it.getName() }