Skip to content

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

@jimklimov

Description

@jimklimov

It is tedious to type git@example.com 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions