/
Trigger Jenkins based on new tags
Trigger Jenkins based on new tags
To configure a job to build tags, confirm the Bitbucket Server and Jenkins job have been configured as described below.
Configure Bitbucket Server
Ensure Advanced Configuration > Branch Options > Build All is selected in the hook configuration. This skips the allowlist and blocklist checks so that all new commits and tags send the required Jenkins notification.
Set up a Jenkins Job for Tags
In the job, set refspec
to +refs/tags/*:refs/remotes/origin/tags/*
. Set the branch specifier to refs/tags/**
. This configures the job so it only responds to new tags.
Related Articles
Related content
Trigger Jenkins build when a specific tag is pushed
Trigger Jenkins build when a specific tag is pushed
More like this
Allow manual build triggers and disable all automated triggers
Allow manual build triggers and disable all automated triggers
More like this
Disable Jenkins notifications when pushing tags
Disable Jenkins notifications when pushing tags
More like this
Trigger Jenkins to only build pull requests
Trigger Jenkins to only build pull requests
More like this
Trigger Jenkins for commits to a specific branch
Trigger Jenkins for commits to a specific branch
More like this
Trigger Jenkins to only build pull requests (Git Plugin 3.XX)
Trigger Jenkins to only build pull requests (Git Plugin 3.XX)
Read with this