diff options
author | ThanksForAllTheFish <mardavi84@gmail.com> | 2014-09-09 14:26:56 +0200 |
---|---|---|
committer | ThanksForAllTheFish <mardavi84@gmail.com> | 2014-09-09 14:26:56 +0200 |
commit | 079e2c80abe701fb7f2a93c43c38d8e2ac69517c (patch) | |
tree | f5915fcbbe2aaffe11db2d21ae912389735a49b1 | |
parent | 8be025e50f5c555bacceee2f63bda452e1edb0f6 (diff) | |
download | gitblit-079e2c80abe701fb7f2a93c43c38d8e2ac69517c.tar.gz gitblit-079e2c80abe701fb7f2a93c43c38d8e2ac69517c.zip |
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
-rw-r--r-- | src/main/distrib/data/groovy/jenkins.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
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()
|