summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGiovanni Harting <539@idlegandalf.com>2016-07-27 11:29:58 +0200
committerGiovanni Harting <539@idlegandalf.com>2016-07-27 11:29:58 +0200
commitfaa70ed22450e3a2591572bea1f6f6b0c9773365 (patch)
tree9e5f3ea6b925b12e8163af9117912cb56793e4bf /build.gradle
parente8976365a2c26347a2266713dc179b09466d085b (diff)
general code cleanup
try and add changes generation back into gradle again
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 7 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 37a627c..5edd388 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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"
}
}