From: ThanksForAllTheFish Date: Tue, 9 Sep 2014 12:26:56 +0000 (+0200) Subject: Repository url is now r X-Git-Tag: v1.6.1~35^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F219%2Fhead;p=gitblit.git Repository url is now r 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 --- diff --git a/src/main/distrib/data/groovy/jenkins.groovy b/src/main/distrib/data/groovy/jenkins.groovy index d76a3d66..422b2200 100644 --- a/src/main/distrib/data/groovy/jenkins.groovy +++ b/src/main/distrib/data/groovy/jenkins.groovy @@ -70,7 +70,7 @@ logger.info("jenkins hook triggered by ${user.username} for ${repository.name}") 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}/r/${repository.name}" // trigger the build new URL(triggerUrl).getContent()