Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51476

Git parameter plugin is not retrieving revision number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-parameter-plugin
    • OS: CentOS 6.7
      Jenkins version: 2.89.4
      Git parameter plugin: 0.9.2

      Hi, 

      Trying to make some functional tests with git parameter plugin, I realised that when configuring "Revision" as input parameter, the list appears as it was empty. I don't have this problem when defining branch or tag as input parameters. 

      In the image below you can see the issue I'm reporting:

      However, I've seen that in this list there is content, because I'm able to click on any item on it and, when launching the job, it indicates me the revision I'm working with, and it is different depending on the row of the list I clicked. In summary, the issue is that Jenkins doesn't show the revisions in the list, but they are really there. 

      Investigating this strange behaviour I've seen this message in Jenkins lo

      This message is returned in java class RevisionInfoFactory.java, whose source code is here: https://github.com/jenkinsci/git-parameter-plugin/blob/master/src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/RevisionInfoFactory.java

      Analysing the code I assume that  __ authorLine variable. In this case, it seems clear that the pattern that Jenkins Git parameter plugin is obtaining from Git doesn't match with the one defined here in  RevisionInfoFactory.java:

      public static final Pattern AUTHOR_LINE_PATTERN = Pattern.compile("author (.* <.@.>) (
      d{10}) (\\+-
      d{4})");

       

      Have you found any similar issue before? Is there a plan to resolve this?

       

      Regards

            klimas7 Boguslaw Klimas
            chortels Carlos Hortelano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: