nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

Cannot use ssh or https in the "Stash Host" field ? #33

Closed Karmaki closed 8 years ago

Karmaki commented 9 years ago

I used this plug-in with a dummy stash installation, and it is working well, but the access used http. Not, I am going back to my real project. My git repository URL looks ssh://git@git.<stashURL>:7999/<project>/<repo>.git and it is working well. But I want to use the plugin (1.3.1 version), I cannot manage to find what to put in theStash Host field.

What am I supposed to put here in this case ? Is this supported ? Thanks in advance for your help.

Karmaki commented 9 years ago

Sorry for the duplicate, this seems to be the same bug than #22.

nemccarthy commented 8 years ago

The stash host must be a HTTPS or HTTP URL. You CANNOT use ssh. This is the URL for the Stash REST API!!!

Make sure your SSL certificates are valid, if not add the CA as trusted on your jenkins machine. There is a PR which allows you to ignore SSL. We use this with https every day without a problem.