-
Bug
-
Resolution: Fixed
-
Major
-
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
[JENKINS-51476] Git parameter plugin is not retrieving revision number
Description |
Original:
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: !revision_menu.jpg! 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 log: _Did not find author pattern author <my_name><my_mail> 2017-11-28T08:27:05+0100_ 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 _author <my_name><my_mail> 2017-11-28T08:27:05+0100_ corresponds to _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 |
New:
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: !revision_menu.jpg! 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 log: _Did not find author pattern author Carlos Beltran Hortelano Sancho <carlos.beltran.hortelano.sancho@everis.com> 2017-11-28T08:27:05+0100_ 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 _author Carlos Beltran Hortelano Sancho <carlos.beltran.hortelano.sancho@everis.com> 2017-11-28T08:27:05+0100_ corresponds to _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}) ([\\+-|file://+-/]_ _d\{4})");_ Have you found any similar issue before? Is there a plan to resolve this? Regards |
Attachment | New: image-2018-05-23-23-27-42-080.png [ 42659 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Description |
Original:
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: !revision_menu.jpg! 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 log: _Did not find author pattern author Carlos Beltran Hortelano Sancho <carlos.beltran.hortelano.sancho@everis.com> 2017-11-28T08:27:05+0100_ 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 _author Carlos Beltran Hortelano Sancho <carlos.beltran.hortelano.sancho@everis.com> 2017-11-28T08:27:05+0100_ corresponds to _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}) ([\\+-|file://+-/]_ _d\{4})");_ Have you found any similar issue before? Is there a plan to resolve this? Regards |
New:
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: !revision_menu.jpg! 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}) ([\\+-|file://+-/]_ _d\{4})");_ Have you found any similar issue before? Is there a plan to resolve this? Regards |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |