Skip to content

Change Jenkins groovy script for any protocol (git/http/ssh) - #986

Merged
gitblit merged 1 commit into
gitblit-org:masterfrom
rgroux:jenkins-groovy-all-proto
Dec 23, 2015
Merged

Change Jenkins groovy script for any protocol (git/http/ssh)#986
gitblit merged 1 commit into
gitblit-org:masterfrom
rgroux:jenkins-groovy-all-proto

Conversation

@rgroux

@rgroux rgroux commented Dec 16, 2015

Copy link
Copy Markdown
Contributor

groovy.jenkinsGitbaseurl in gitblit.properties or web.xml can override the http default protocol for the jenkins trigger.

without any parameters in gitblit.properties we use "/git/notifyCommit?url=${url}/r/${repository.name}" as triiger
but the groovy.jenkinsGitbaseurl in gitblit.properties is useful for ssh or any other proto

for exemple:

groovy.jenkinsGitbaseurl = ssh://gitblit.example.com:28148

target to

triggerUrl = jenkinsUrl + "/git/notifyCommit?url=ssh://gitblit.example.com:28148/${repository.name}"

instead of

triggerUrl = jenkinsUrl + "/git/notifyCommit?url=${url}/r/${repository.name}"

groovy.jenkinsGitbaseurl in gitblit.properties or web.xml can
override the http default protocol
gitblit added a commit that referenced this pull request Dec 23, 2015
Change Jenkins groovy script for any protocol (git/http/ssh)
@gitblit
gitblit merged commit 2539cee into gitblit-org:master Dec 23, 2015
@gitblit

gitblit commented Dec 23, 2015

Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants