fix a few things

This commit is contained in:
Telesphoreo 2022-03-26 17:44:26 -05:00
parent 222eec2eac
commit df87cd73fd

View File

@ -89,13 +89,12 @@ static def getDate() {
}
ext {
buildAuthor = System.getenv("BUILD_NUMBER") != null ? System.getenv("BUILD_NUMBER") : getGitHash()
buildAuthor = System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown"
buildNumber = System.getenv("BUILD_NUMBER") != null ? System.getenv("BUILD_NUMBER") : getGitHash()
}
task buildProperties {
ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") {
entry(key: "buildAuthor", value: buildAuthor)
entry(key: "buildAuthor", default: System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown")
entry(key: "buildNumber", value: buildNumber)
entry(key: "buildDate", value: getDate())
entry(key: "buildHead", value: getGitHash())