mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
try this
This commit is contained in:
parent
56e71b10fa
commit
e5ae89a072
@ -88,14 +88,10 @@ static def getDate() {
|
|||||||
return new Date().format("MM/dd/yyyy '<light_purple>at<gold>' hh:mm:ss a")
|
return new Date().format("MM/dd/yyyy '<light_purple>at<gold>' hh:mm:ss a")
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
|
||||||
buildNumber = System.getenv("JENKINS_URL") != null ? System.getenv("BUILD_NUMBER") : getBuildNumber()
|
|
||||||
}
|
|
||||||
|
|
||||||
task buildProperties {
|
task buildProperties {
|
||||||
ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") {
|
ant.propertyfile(file: "$project.rootDir/src/main/resources/build.properties") {
|
||||||
entry(key: "buildAuthor", default: System.getenv("JENKINS_URL") != null ? "jenkins" : "unknown")
|
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: "buildDate", value: getDate())
|
||||||
entry(key: "buildHead", value: getGitHash())
|
entry(key: "buildHead", value: getGitHash())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user