From e5ae89a072b3c451e937957daef8edc1de5880af Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sat, 26 Mar 2022 17:50:59 -0500 Subject: [PATCH] try this --- build.gradle | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 343472a..d839a54 100644 --- a/build.gradle +++ b/build.gradle @@ -88,14 +88,10 @@ static def getDate() { return new Date().format("MM/dd/yyyy 'at' hh:mm:ss a") } -ext { - buildNumber = System.getenv("JENKINS_URL") != null ? System.getenv("BUILD_NUMBER") : getBuildNumber() -} - task buildProperties { ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") { entry(key: "buildAuthor", default: System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown") - entry(key: "buildNumber", value: buildNumber) + entry(key: "buildNumber", value: System.getenv("JENKINS_URL") != null ? System.getenv("BUILD_NUMBER") : getBuildNumber()) entry(key: "buildDate", value: getDate()) entry(key: "buildHead", value: getGitHash()) }