Testing jenkins+gradle config

This commit is contained in:
pahimar 2013-12-28 18:41:08 -05:00
parent bc0476e3d1
commit ec24381a5f

View file

@ -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, "")
}
}
}
@ -129,4 +131,17 @@ task release(type: Copy) {
onlyIf {
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 != "."
}
}