[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2016-03-30 Thread leandro.lucare...@sociomantic.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Leandro Lucarella commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
More info, this is how my polling looks when using a parameter for the branch specification: 

 
Started on Mar 30, 2016 1:19:00 PM
Using strategy: Default
[poll] Last Built Revision: Revision ace29d00302d20dddb3763057f31ab40b1fe8b4b (origin/v2.x.x)
using GIT_SSH to set credentials cred SSH key
 > git --version # timeout=10
 > git -c core.askpass=true ls-remote -h g...@github.com:some/repo.git # timeout=10
Found 32 remote heads on g...@github.com:some/repo.git
[poll] Latest remote head revision on refs/heads/v1.7.x is: 138b74fc9ce8885aefdeabfdf8bc3ecca572d264 - already built by 333
[poll] Latest remote head revision on refs/heads/v1.4.x is: 57d03eb35379098071726699783055535a8bd425 - already built by 338
[poll] Latest remote head revision on refs/heads/v1.17.x is: 22d0d8742bacf4c89602fc98f20017c323cdf7bc - already built by 18
[poll] Latest remote head revision on refs/heads/v1.2.x is: b919d378aac4e503c21b58d940197553f4983344 - already built by 340
[poll] Latest remote head revision on refs/heads/v1.27.x is: fe1052f3b95a5b75be18b45ce41743da900712f9 - already built by 343
[poll] Latest remote head revision on refs/heads/v1.5.x is: 0ae940fecddcd4a5a785e5871e12b200ddfb7bee - already built by 345
[poll] Latest remote head revision on refs/heads/v1.24.x is: 71c050ef5b8fc3430f80cafb27109d34aa103876 - already built by 347
[poll] Latest remote head revision on refs/heads/v1.19.x is: d09a06c871bdc8f518f694877110189258792392 - already built by 349
[poll] Latest remote head revision on refs/heads/v1.26.x is: 1d053f81485174957c38cee420eac1292ceb82ef - already built by 351
[poll] Latest remote head revision on refs/heads/master is: 3a9bf5071b66bd78b2e90984b88dba22ffea489e - already built by 336
[poll] Latest remote head revision on refs/heads/v1.25.x is: 912e94dbb7f9bdc4ceec75a9c7e56cb1dbbbce75 - already built by 352
[poll] Latest remote head revision on refs/heads/v1.23.x is: b7919967ce1e152ef4656b7b4866ba14b8ec - already built by 357
[poll] Latest remote head revision on refs/heads/v1.6.x is: fababe9cd990e1867e28f501b0e91faf1e920a5a - already built by 359
[poll] Latest remote head revision on refs/heads/v1.18.x is: 987f8c23304b99a6377cae63c7a9a7b5051f4e62 - already built by 361
[poll] Latest remote head revision on refs/heads/v1.1.x is: 4008675d54b10bafd675a25ba093190697af867f - already built by 365
[poll] Latest remote head revision on refs/heads/v1.22.x is: 2e47914dfa42cb595731b264cbecc277620aced0 - already built by 19
[poll] Latest remote head revision on refs/heads/v1.13.x is: cf834f5d3968d8b3996025fc1eb570d17b6a3083
Done. Took 2.4 sec
Changes found
 

 
refs/heads/v1.13.x is not detected as being already built, but instead of building that reference, the last reference is built (ace29d00302d20dddb3763057f31ab40b1fe8b4b (origin/v2.x.x)), so on the next polling the same happens, refs/heads/v1.13.x is detected as not being built and again the last version built gets rebuilt, getting into an infinite rebuilding loop. 
 
And this is how it looks when just leaving the branch specification empty: 

 
Started on Mar 30, 2016 12:59:00 PM
Polling SCM changes on master
Using strategy: Default
[poll] Last Built Revision: Revision ace29d00302d20dddb3763057f31ab40b1fe8b4b (origin/v2.x.x)
 > git rev-parse --is-inside-work-tr

[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2016-03-29 Thread leandro.lucare...@sociomantic.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Leandro Lucarella commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
If I do a manual build of the branch that keeps triggering the build (by setting my parameter $ {ref} 
 to that branch), then that particular branch build is not triggered anymore by the pooling, I have to repeat the process with all the "offending" branches, and then the job seems to work fine. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2016-03-29 Thread leandro.lucare...@sociomantic.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Leandro Lucarella commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
I'm also affected by this. My use case is exactly as described by Kanstantsin Shautsou in https://issues.jenkins-ci.org/browse/JENKINS-29714?focusedCommentId=233448&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-233448 but I use $ {ref} 
 in the branchspec field (and the default value of parameter "ref" is an empty value). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2016-03-19 Thread roh...@silpion.de (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Marc Rohlfs commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
I'm experiencing this, too. Seems like this happens when the polling interval is shorter than the build duration. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread gentoo.inte...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kanstantsin Shautsou commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
I saw such use cases before, people define variable to have ability trigger job with specified branch and in the same time enabling polling for automatically building all branches. So variable has * as default value (or **) for having working polling.  AFAIR code, branchspec has substitution of default variables. Critical because it causes infinite build scheduling and always sees changes. I will try reproduce with previous versions and then define if it regression.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite commented on  JENKINS-29714 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 
 
Is this a new behavior, or has it always behaved this way? 
Since this is the refspec, can you explain your use case further so that I understand why you declared it to be critical?  
I'm accustomed to refspecs being used to limit what is fetched or is considered for fetch, but still you need to choose the branch which will be built. Help me better understand how you are using a parameterized refspec. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite assigned an issue to Unassigned 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-29714 
 
 
 
  infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 

Assignee:
 
 Mark Waite 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread gentoo.inte...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kanstantsin Shautsou updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-29714 
 
 
 
  infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kanstantsin Shautsou 
 
 
 
 
 
 
 
 
 
 # Parametrise build with input string parameter BRANCH and default value *# define branchspec     {code :java }   origin/${BRANCH}  { CODE code }  # enable pollingPolling will see infinitely new changes.Fix - remove variable and directly set * 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread gentoo.inte...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kanstantsin Shautsou assigned an issue to Mark Waite 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-29714 
 
 
 
  infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kanstantsin Shautsou 
 
 
 

Assignee:
 
 Nicolas De Loof Mark Waite 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread gentoo.inte...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kanstantsin Shautsou updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-29714 
 
 
 
  infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kanstantsin Shautsou 
 
 
 
 
 
 
 
 
 
 # Parametrise build with input string parameter BRANCH and default value *# define branchspec  {code}  origin/${BRANCH} {CODE} # enable pollingPolling will see infinitely new changes.Fix - remove variable and directly set * 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [git-plugin] (JENKINS-29714) infinite polling with variable in branchspec

2015-07-29 Thread gentoo.inte...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kanstantsin Shautsou created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-29714 
 
 
 
  infinite polling with variable in branchspec  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Nicolas De Loof 
 
 
 

Components:
 

 git-plugin 
 
 
 

Created:
 

 29/Jul/15 10:17 PM 
 
 
 

Environment:
 

 1.609.1  git-plugin-2.4.0  git-client-1.18.0 
 
 
 

Priority:
 
  Critical 
 
 
 

Reporter:
 
 Kanstantsin Shautsou 
 
 
 
 
 
 
 
 
 
 
 

Parametrise build with input string parameter BRANCH and default value *
 

define branchspec origin/$ {BRANCH}
 

enable polling
 
 
Polling will see infinitely new changes. 
Fix - remove variable and directly set *