alchemist_wurzelpurzel Posted January 21, 2022 Report Share Posted January 21, 2022 Hi all! We are using after-checkin triggers to deploy builds via Jenkins when changes are made in certain branches. We have this working for a child branch of /main, but now we want to implement it for the /main branch itself. The issue is, when using br:/main as a filter, the trigger will fire for every child branch of /main when we only want it for changes in /main branch. Is there a way to let it filter for an exact branch name match rather than filtering for if the branch name contains the filter? Cheers! Link to comment Share on other sites More sharing options...
alchemist_wurzelpurzel Posted January 24, 2022 Author Report Share Posted January 24, 2022 For anyone that comes across this: I managed to make it work by using the filter as follows: br:/main; Mind the semicolon which is used in the Standard Input after the branch name ends. This let me filter for /main only. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now