Testing jenkins+gradle config
This commit is contained in:
parent
bc0476e3d1
commit
ec24381a5f
1 changed files with 22 additions and 7 deletions
27
build.gradle
27
build.gradle
|
@ -107,13 +107,15 @@ task incrementBuildNumber() {
|
|||
}
|
||||
}
|
||||
|
||||
task buildnumber << {
|
||||
env = System.getenv()
|
||||
task ci_incrementBuildNumber() {
|
||||
doLast {
|
||||
// increment
|
||||
config.build_number = $ { System.getenv().BUILD_NUMBER }
|
||||
|
||||
println env.get(BUILD_NUMBER)
|
||||
|
||||
env.each {
|
||||
key, value -> println "$key = $value";
|
||||
// write back to the file
|
||||
configFile.withWriter {
|
||||
config.toProperties().store(it, "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -130,3 +132,16 @@ task release(type: Copy) {
|
|||
return project.ee3_release_loc != "."
|
||||
}
|
||||
}
|
||||
task ci_release(type: Copy) {
|
||||
dependsOn "ci_incrementBuildNumber"
|
||||
dependsOn "signJar"
|
||||
|
||||
eachFile { file ->
|
||||
logger.info "copying ${file}"
|
||||
}
|
||||
|
||||
// only if the release location isn't empty.
|
||||
onlyIf {
|
||||
return project.ee3_release_loc != "."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue