Doesn't show any tags or revisions #2

smerrill opened this Issue Dec 22, 2011 · 19 comments


None yet

Here's my setup:

CentOS 6
Tomcat6 installed via yum
git 1.7.1 installed via yum
Jenkins v1.444 running under tomcat6
git-parameter 0.1

I have a project checked out from github over ssh using the git plugin. The project has 1 tag and many revisions, but when I create a git parameter that lists either tags or revisions, the parameter comes up blank.


Any ideas?


lukanus commented Dec 22, 2011

Yeah, You have the latest version of jenkins probably with the latest update of git plugin on which is git-parameter based.
I don't really know what had changed in this libs, but it does stop working for me also.
Now I have pretty hot time at my work, but I'll try to put it all together until the end of this year, along with some features, probably supporting branches and slave/master configuration. Speaking of which, any feedback, what functionalities you would wanted to have along with this plugin will be appreciated.

Honestly, just being able to pick from a list of tags would be great. I usually put a parameter into a job to specify which tag to deploy.

+1 for fix. I would love for this plug-in to work again. Doesn't work on any of the 1.4x versions I guess. Any updates? I only am interested in Tag support right now.

lukanus was assigned Feb 21, 2012


lukanus commented Feb 21, 2012

ok... so.... sorry for delay, I am pretty busy lately.
It stops working along with the addition of 'reference' parameter to main GitApi() constructor from git plugin. For me now it is fixed but I'm not going to close this issue now, I will wait a little bit, for any feedback from You if everything is ok.
Along with this you can now pick from which branch you want to choose tags/revisions.

It works for me in v0.2, although I had to first build with no tag parameter (so it would check out the code - to get the tags in the first place).

The only disappointing thing is that it doesn't sort the tags (ideally in such a way that "tag_2" comes before "tag_12", but even sorting them alphabetically would make it more useable).

I am experiencing this issue with Jenkins v 1.477 and git parameter v 0.2

it's impossible for me to get Git tags list.
I'm using Jenkins 1.432 and git parameter v 0.2.

I've tried to build the job first without Git parameter in order to clone the repo. But the git-parameter tag list is always empty.

It's now July 11 2013; I've just installed this plugin and am seeing an empty tag list. Has there been any work/progress on this issue?

Still no news on this? I'm having the same problem. (November 28 2013)
OS: Ubuntu Precise
Jenkins 1.541
Git Parameter plugin 0.2
Git Client plugin 1.4.5
Git plugin 2.0
Git version

cl99 commented Dec 9, 2013

Are there any plans to fix this, or is this a dead project?

For me I ran a build from my master branch. Then went back into the job and added the git-parameter options and then I could see my tags in the dropdown.
I noticed this line on the Git-Parameters plugin main page:

"There is a problem when you want to build your project for a first time and you don't have any suitable workspace which works with git, then the list to chose from is empty, but it will work after the first build"

Unfortunately the way we build is based on tags so we have hundreds and the drop down doesnt sort them which is a HUGE pain. I saw a pull request here but it doesnt look like its been merged in and released for some reason.


lukanus commented Apr 4, 2014

Hi! I'm not able to test this in production env. now.
If you gave me green light, that it (any pull request) is working against lastest jenkins version, I'll merge this.
And that way, untill I will once again have some time to setup whole dev env for that.

ngiger commented May 15, 2014

See version 0.3.2 under
Can you close this issue as I have no committer right here? Thanks in advance.

TJM commented Jun 17, 2014

We still don't see any tags listed (I even tried revisions, nothing)...

Our Specs:

  • OS: Cent OS 6.5
  • Jenkins 1.554.2 (stable)
  • git parameter plugin 0.3.2
  • GIT plugin 2.2.1
  • GIT Client Plugin 1.9.1
  • Local git version 1.7.1

There is no output in the build window to indicate that it is even trying :-/

However, git ls-remote / git tag works:

$ git ls-remote -t git@gitserver:reponame 
df98b191dcd34cf3b6f7aa2469c93e83753c5bc7    refs/tags/v1.0
190f945204323e63bdd908061d71358a285c7c66    refs/tags/v1.0^{}

$ git tag -l

Any tips? I don't know where to start debugging because I see no errors ;)

Oh, wait, maybe this NPE sheds light on it?

Jun 17, 2014 10:09:40 AM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: it.revisionMap in /job/SF-Dev/job/Deploy-Auction-GitTag/build. Reason: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
Caused by: java.lang.NullPointerException
    at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.generateContents(
    at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getRevisionMap(
    ... 167 more

TJM commented Jun 17, 2014

I am betting that the problem is somewhere in here:

context is set to null, then there is some sort of elaborate sequence that should set context to the project during the loop, but apparently that is not happening.

It seems that this issue is still happening here, any news on it?

sas05 commented Dec 15, 2014

I have also got this problem.

Same problem here, no way to make it work, I tried changing branches, nothing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment