From 30f9d25d77ccb5cd978d4cf8fa389ec819e90e95 Mon Sep 17 00:00:00 2001 From: Philip L. McMahon <philip.l.mcmahon@gmail.com> Date: Fri, 27 Jan 2012 02:02:19 -0500 Subject: [PATCH] Correct update of HEAD symbolic reference when target is a tag. --- groovy/jenkins.groovy | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/groovy/jenkins.groovy b/groovy/jenkins.groovy index df4e588..443e51d 100644 --- a/groovy/jenkins.groovy +++ b/groovy/jenkins.groovy @@ -62,10 +62,10 @@ // define your jenkins url here or set groovy.jenkinsServer in // gitblit.properties or web.xml -def jenkinsUrl = gitblit.getString("groovy.jenkinsServer", "http://yourserver/jenkins") +def jenkinsUrl = gitblit.getString('groovy.jenkinsServer', 'http://yourserver/jenkins') // define the trigger url -def triggerUrl = jenkinsUrl + "/git/notifyCommit?url=" + url + "/git/" + repository.name +def triggerUrl = jenkinsUrl + "/git/notifyCommit?url=$url/git/$repository.name" // trigger the build new URL(triggerUrl).getContent() -- Gitblit v1.9.1