Skip to content
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

@rgroux
Copy link
Contributor

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

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:master Dec 23, 2015
@gitblit
Copy link
Owner

@gitblit gitblit commented Dec 23, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.