github-plugin icon indicating copy to clipboard operation
github-plugin copied to clipboard

[JENKINS-54098] github webhook not working with dynamic feature branch

Open jenkins-infra-bot opened this issue 7 years ago • 1 comments

I am using sandbox groovy and defining branch = '/*' 

pushing to master branch why github push is looking for 

refs/remotes/origin/feature/jenkins-001

 

If manually I using master branch as parameter. After that it always looks for master even I push on feature Branch.

Last GitHub Push

Started on Oct 16, 2018 8:41:43 AM Started by event from IP ⇒

http://jenkins:8080/github-webhook/

on Tue Oct 16 08:41:43 UTC 2018 Using strategy: Default [poll] Last Built Revision: Revision dcdb9e24c6595de1c0af8d8ede5ef3asdfsdfasdf (refs/remotes/origin/feature/jenkins-001) > git --version # timeout=10 using GIT_ASKPASS to set credentials github > git ls-remote -h

https://github.com/demo.git

  1. timeout=10 Found 6 remote heads on

https://github.com/prasantkumar-ext/miq-uidh-sap.git

[poll] Latest remote head revision on refs/heads/feature/jenkins-001 is: dcdb9e24c6595de1c0af8d8ede5ef33f16ca95f2 - already built by 46 Done. Took 2.5 sec No changes


Originally reported by crazypks, imported from: github webhook not working with dynamic feature branch
  • assignee: lanwen
  • status: Open
  • priority: Blocker
  • component(s): github-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08
Raw content of original issue

I am using sandbox groovy and defining branch = '/*' 

pushing to master branch why github push is looking for 

refs/remotes/origin/feature/jenkins-001

 

If manually I using master branch as parameter. After that it always looks for master even I push on feature Branch.

Last GitHub Push

Started on Oct 16, 2018 8:41:43 AM Started by event from IP ⇒

http://jenkins:8080/github-webhook/

on Tue Oct 16 08:41:43 UTC 2018 Using strategy: Default [poll] Last Built Revision: Revision dcdb9e24c6595de1c0af8d8ede5ef3asdfsdfasdf (refs/remotes/origin/feature/jenkins-001) > git --version # timeout=10 using GIT_ASKPASS to set credentials github > git ls-remote -h

https://github.com/demo.git

  1. timeout=10 Found 6 remote heads on

https://github.com/prasantkumar-ext/miq-uidh-sap.git

[poll] Latest remote head revision on refs/heads/feature/jenkins-001 is: dcdb9e24c6595de1c0af8d8ede5ef33f16ca95f2 - already built by 46 Done. Took 2.5 sec No changes

environment
Jenkins ver. 2.138.2 <br/>
Github Plugin 1.29.3

jenkins-infra-bot avatar Oct 16 '18 09:10 jenkins-infra-bot

crazypks:
  • Original comment link
  • Raw content of original comment:

    Why it's looking for 

    [poll] Last Built Revision: Revision

Why it's looking for 

[poll] Last Built Revision: Revision

jenkins-infra-bot avatar Oct 16 '18 10:10 jenkins-infra-bot