jenkinsci / jenkinsci/git-parameter-plugin

[JENKINS-61769] git-parameter-plugin in declarative pipeline showing origin1 and origin as remote branches but actually did'nt exist

Open
#288 5 comments 0 reactions 0 assignees View on GitHub
component:git-parameter-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
131
Forks
134
Avg merge
21h 5m
Merged PRs (30d)
1

Description

I have configured Jenkins git parameter plugin for selecting appropriate branches before building a job. I am using two repositories for building a single job.

For one of the repositories its showing two remote sever as origin and origin1 but actually it has only one it is origin.

I have checked the repository and given the result as below

 

$ git ls-remote --heads origin

d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/heads/XXXX

3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/heads/XXXX

ea0908b790a8491584bfe0f7e7ba459ee6307cb0        refs/heads/XXXX

a1225d5a8f1a24ef4c65384b6833224358d30587        refs/heads/XXXX

74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/heads/XXXX

9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/heads/feature/scenario

ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/heads/master

 

$ git ls-remote

From https://github.developer.allianz.io/cta-crui/crui-data-model.git

ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        HEAD

d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/heads/XXXX

3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/heads/XXXX

ea0908b790a8491584bfe0f7e7ba459ee6307cb0        refs/heads/XXXX

a1225d5a8f1a24ef4c65384b6833224358d30587        refs/heads/XXXX

74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/heads/XXXX

9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/heads/feature/scenario

ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/heads/master

7d3177956309ea27d828ea8e879084ee2c1a5344        refs/pull/1/head

27a27fe3d82c0fd867a54716b693e7173968b05b        refs/pull/2/head

9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/pull/3/head

d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/pull/4/head

3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/pull/5/head

a1225d5a8f1a24ef4c65384b6833224358d30587        refs/pull/6/head

74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/pull/7/head

9564fdb879cc3b3ff15d66baf4d9a0cfafcda120        refs/pull/7/merge

ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/tags/v0.1

 

 

But in jenkins job it showing like this



 

 

You can see both origin1 and origin are showing . Please provide us support regarding this issue 

 

---
Originally reported by krishnakp2, imported from: git-parameter-plugin in declarative pipeline showing origin1 and origin as remote branches but actually did'nt exist


  • status: Open
  • priority: Major
  • component(s): git-parameter-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 20251216-182730

Raw content of original issue

I have configured Jenkins git parameter plugin for selecting appropriate branches before building a job. I am using two repositories for building a single job.

For one of the repositories its showing two remote sever as origin and origin1 but actually it has only one it is origin.

I have checked the repository and given the result as below

 
$ git ls-remote --heads origin
d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/heads/XXXX
3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/heads/XXXX
ea0908b790a8491584bfe0f7e7ba459ee6307cb0        refs/heads/XXXX
a1225d5a8f1a24ef4c65384b6833224358d30587        refs/heads/XXXX
74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/heads/XXXX
9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/heads/feature/scenario
ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/heads/master
 
$ git ls-remote
From https://github.developer.allianz.io/cta-crui/crui-data-model.git
ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        HEAD
d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/heads/XXXX
3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/heads/XXXX
ea0908b790a8491584bfe0f7e7ba459ee6307cb0        refs/heads/XXXX
a1225d5a8f1a24ef4c65384b6833224358d30587        refs/heads/XXXX
74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/heads/XXXX
9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/heads/feature/scenario
ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/heads/master
7d3177956309ea27d828ea8e879084ee2c1a5344        refs/pull/1/head
27a27fe3d82c0fd867a54716b693e7173968b05b        refs/pull/2/head
9e3e0fa0c93829b9dbb945f3d7788e77462f15c9        refs/pull/3/head
d8c63b4c1f1a87cba2b5065d3c2018193079fb80        refs/pull/4/head
3b390cec5ede9ec4dede3b83dc8d05969a286b70        refs/pull/5/head
a1225d5a8f1a24ef4c65384b6833224358d30587        refs/pull/6/head
74977aed5ed375d2afae0e35d3ec73fa214e63e1        refs/pull/7/head
9564fdb879cc3b3ff15d66baf4d9a0cfafcda120        refs/pull/7/merge
ff9af7bcd7d6c06cbb573656cf73abe2c0b26538        refs/tags/v0.1

 
 
But in jenkins job it showing like this

 
 
You can see both origin1 and origin are showing . Please provide us support regarding this issue 
 

1 attachment

- [image-2020-04-01-21-41-34-429.png](https://issues.jenkins.io/secure/attachment/50877/image-2020-04-01-21-41-34-429.png)
> ![image-2020-04-01-21-41-34-429.png](https://issues.jenkins.io/secure/attachment/50877/image-2020-04-01-21-41-34-429.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.