-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ways not to notify Jenkins when he's pushing tags ? #173
Comments
Have you tried adding commit message while creating tag and excluding this commit tag using Git Plugin option Polling ignored commits with certain messages? |
Hum, no I haven't tried to combine this setup with polling options. Now that you mention it, it might work. I'd need to give it a try... |
Can you provide a git log of the commit performed by this user? |
@karann-jain Adding tag message doesn't seem to work because Jenkins does all the filtering only after proper commit is determined. At this point tag information is already lost as tag is just used to determine which commit it point to. So yes, you can filter by message, but it would be a commit message, not a tag's one. |
We are using Bitbucket 4.5.2 (which I'm not an admin of, so I can't access logs) with this webhook to notify our Jenkins jobs of new pushes. I recently added a post-build "Git Publisher" step to tag successful jobs and push it to our Bitbucket server.
Our Jenkins instance has its SSH key setup for system use, as described here: https://confluence.atlassian.com/bitbucketserver/ssh-access-keys-for-system-use-776639781.html. The problem is that the webhook sends a notification to Jenkins when the tag is pushed, triggering a new build. If this new build is successful, it gets tagged, triggers another build, yada, yada, yada.
I tried:
tcpdump
on Jenkinsrefs/tags/*
refs/heads/
can match...So any idea how I could prevent the webhook from notifying Jenkins when tags are pushed from Jenkins? I'm out of ideas, except doing some dirty build step in our job to stop the infinite build loop.
Thanks
The text was updated successfully, but these errors were encountered: