general code cleanup

try and add changes generation back into gradle again
This commit is contained in:
2016-07-27 11:29:58 +02:00
parent e8976365a2
commit faa70ed224
32 changed files with 49 additions and 124 deletions

View File

@@ -47,10 +47,14 @@ task buildInfo {
ext.buildNum = System.getenv().BUILD_NUMBER
}
if (System.getenv().TAIGA_CHANGES != null) {
ext.changes = System.getenv().TAIGA_CHANGES
def cmd = "git log \$(git tag --sort=-refname | sed -n '2p')..\$(git tag --sort=-refname | sed -n '1p') --oneline"
def proc = cmd.execute()
proc.waitFor()
if (proc.exitValue() == 0) {
ext.changes = proc.text.trim()
} else {
ext.changes = ""
ext.changes = "N/A"
}
}