jenkinsci / jenkinsci/git-plugin

[JENKINS-73527] Entering recommended refspec value for Gitlab job triggers an error

Open
#3,848 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin component:gitlab-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

In the Jenkin's documentation for setting up a Freestyle job there is a recommendation:



  1. In the Advanced settings, set Name to origin and Refspec to +refs/heads/:refs/remotes/origin/ +refs/merge-requests//head:refs/remotes/origin/merge-requests/

https://plugins.jenkins.io/gitlab-plugin/#plugin-content-git-configuration

However setting up

+refs/heads/:refs/remotes/origin/ +refs/merge-requests//head:refs/remotes/origin/merge-requests/

into the dedicated field triggers the error (see the screen-shot attached).

The format seem to respect the documentation.

---
Originally reported by christian_rusin, imported from: Entering recommended refspec value for Gitlab job triggers an error


  • status: Open
  • priority: Blocker
  • component(s): git-plugin, gitlab-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 5
  • imported: 2025-12-02

Raw content of original issue

In the Jenkin's documentation for setting up a Freestyle job there is a recommendation:



  1. In the Advanced settings, set Name to origin and Refspec to +refs/heads/:refs/remotes/origin/ +refs/merge-requests//head:refs/remotes/origin/merge-requests/

https://plugins.jenkins.io/gitlab-plugin/#plugin-content-git-configuration

However setting up

+refs/heads/:refs/remotes/origin/ +refs/merge-requests//head:refs/remotes/origin/merge-requests/

into the dedicated field triggers the error (see the screen-shot attached).
The format seem to respect the documentation.

1 attachment

- [Screenshot 2024-07-29 at 14.39.24.png](https://issues.jenkins.io/secure/attachment/63021/Screenshot%202024-07-29%20at%2014.39.24.png)
> ![Screenshot 2024-07-29 at 14.39.24.png](https://issues.jenkins.io/secure/attachment/63021/Screenshot%202024-07-29%20at%2014.39.24.png)

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.