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

Merged
merged 1 commit into from Dec 23, 2015

Projects

None yet

2 participants

@rgroux
Contributor
rgroux commented Dec 16, 2015

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}"

@rgroux rgroux Change Jenkins groovy script for any protocol (git/http/ssh)
groovy.jenkinsGitbaseurl in gitblit.properties or web.xml can
override the http default protocol
306116c
@gitblit gitblit merged commit 2539cee into gitblit:master Dec 23, 2015
@gitblit
Owner
gitblit commented Dec 23, 2015

Thanks!

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