New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 23, 2015

Conversation

Projects
None yet
3 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}"

Change Jenkins groovy script for any protocol (git/http/ssh)
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

Merge pull request #986 from rgroux/jenkins-groovy-all-proto
Change Jenkins groovy script for any protocol (git/http/ssh)

@gitblit gitblit merged commit 2539cee into gitblit:master Dec 23, 2015

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Dec 23, 2015

Owner

Thanks!

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