stash-pullrequest-builder-plugin icon indicating copy to clipboard operation
stash-pullrequest-builder-plugin copied to clipboard

Feature request: among the variables passed to caller, pass the repo clone URL

Open jimklimov opened this issue 8 years ago • 0 comments

It is tedious to type [email protected] things, especially into code snippets copied all around and maybe to different deployments of Jenkins and Stash.

The Stash REST API does return http and ssh cloning URLs (assuming both transports are enabled), so the plugin is in position to forward these values in a variable or two... or four, if we pass the URL prefix for the two transports, and the full URL to repository.

The HTTP(S) cloning URL pattern is: http://stash.hostname.com/scm/${destinationRepositoryOwner}/${destinationRepositoryName}.git, where the project names are "as is" (but lowercased), and user names are prefixed with a tilde character.

More details here: https://issues.jenkins-ci.org/browse/JENKINS-46605

jimklimov avatar Sep 02 '17 15:09 jimklimov