-
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
allow webhook to trigger on Tags #166
Comments
it doesn't look like this is possible at the moment. at some point, |
I was struggling with this trying to get my builds to only trigger on new tags and when the PR "trigger build" button is pressed. I've found a sort of hackish workaround below: Set |
We could definitely use the capability to trigger builds on branches and tags. The basic workflow we desire is to be able to setup up two jenkins jobs. One job simply runs any build and test scripts on our specified branch (e.g., master) anytime there are new commits. This is pretty straight forward simply by specify which branches to trigger a build in the "build from:" options. This helps to verify we have working code when any commits are made. The second job is used to package and deploy released code. We would like to define a release as any commit with a tag (e.g., v1.0.1). This is possible with the workaround described by @paulcichonski which is to specify "*" in the "Ignore From" options. However, the workaround appears to disallow the first option. @mikesir87 , is this something that will eventually be added to this plugin? |
@ryanewtaylor I think you should be able to use Its been a while since I've dug into this so I could be wrong. |
@paulcichonski I tested that configuration and it does not appear to trigger the jenkins job. I think a helpful configuration for this plugin would be to be able to specify which branches and tags you want to include, e.g.,
Similar to what is specified in Jenkins |
I have managed to get this to work for both my use cases with the following setup. Configure Stash / Bitbucket ServerSelect Set up a Jenkins Job for TagsIn the job set Set up a Jenkins Job for
|
I'm trying to trigger jenkins based on new tags in my repo, by using "refs/tags/" and "tags/" as my branch options in the plugin config.
I see something about this is mentioned here: https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/blob/master/src/main/java/com/nerdwin15/stash/webhook/RepositoryChangeListener.java#L54
I've spent literally 4 seconds looking through the plugin code and stash api, so I don't pretend to understand what this does. but this seems to imply that triggering based on tags would not occur?
is it possible to setup this plugin/stash to notify jenkins for new tags?
The text was updated successfully, but these errors were encountered: