Set author to jenkins

This commit is contained in:
Telesphoreo 2022-03-26 17:31:36 -05:00
parent def38eed06
commit 94da9ff7fe

View File

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