1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Fixed git log command

This commit is contained in:
Ewout Prangsma 2018-03-27 09:03:16 +02:00
parent ea5c37cb8b
commit bd089bf308
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -20,7 +20,7 @@ def notifySlack(String buildStatus = 'STARTED') {
} }
def fetchParamsFromGitLog() { def fetchParamsFromGitLog() {
def options = sh(returnStdout: true, script: "git log --reverse master..HEAD | grep -o \'\\[ci[^\\[]*\\]\' | sed -E \'s/\\[ci (.*)\\]/\\1/\'").trim().split("\n") def options = sh(returnStdout: true, script: "git log --reverse remotes/origin/master..HEAD | grep -o \'\\[ci[^\\[]*\\]\' | sed -E \'s/\\[ci (.*)\\]/\\1/\'").trim().split("\n")
for (opt in options) { for (opt in options) {
def idx = opt.indexOf('='); def idx = opt.indexOf('=');
if (idx > 0) { if (idx > 0) {