]> source.dussan.org Git - gitblit.git/commitdiff
Repository url is now r 219/head 75/175/1
authorThanksForAllTheFish <mardavi84@gmail.com>
Tue, 9 Sep 2014 12:26:56 +0000 (14:26 +0200)
committerThanksForAllTheFish <mardavi84@gmail.com>
Tue, 9 Sep 2014 12:26:56 +0000 (14:26 +0200)
The previous 'triggerUrl' version causes a response similar to 'No git jobs using repository: http://gitblit-host/gitblit/git/repo.git'. The wroking url is 'http://gitblit-host/gitblit/r/repo.git'.
I also added brackets to improve readability

src/main/distrib/data/groovy/jenkins.groovy

index d76a3d66877496b0238907d6d067467cea2bdb28..422b220081207a1f4b5552f3a76e87fb86d99862 100644 (file)
@@ -70,7 +70,7 @@ logger.info("jenkins hook triggered by ${user.username} for ${repository.name}")
 def jenkinsUrl = gitblit.getString('groovy.jenkinsServer', 'http://yourserver/jenkins')\r
 \r
 // define the trigger url\r
-def triggerUrl = jenkinsUrl + "/git/notifyCommit?url=$url/git/$repository.name"\r
+def triggerUrl = jenkinsUrl + "/git/notifyCommit?url=${url}/r/${repository.name}"\r
 \r
 // trigger the build\r
 new URL(triggerUrl).getContent()\r