jenkinsci / jenkinsci/git-parameter-plugin

Add `refs/tags/` prefix to selected tag

Open
#328 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
131
Forks
134
Avg merge
21h 5m
Merged PRs (30d)
1

Description

### What feature do you want to see added?

I'm using this plugin to feed the a select value directly to the "Branches to build"-Attribute (of the Git plugin) in a pipeline job:
Image

This is working fine when selecting branches (PT_BRANCH or PT_BRANCH_TAG) but not when selecting a tag (e.g. PT_BRANCH_TAG) because this plugin will only return the simple tag name without the `refs/tags/` prefix, which is needed by git-plugin (see highlighted section in the help text).

It would therefore be really helpful if I could tell the plugin something like "Always add `refs/tags/` prefix to tag values" or something line that.

### Upstream changes

_No response_

### Are you interested in contributing this feature?

Possibly, with some guidance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.