Triggers like Maven Snapshot dependency and Retry Build only runs on Default branch

I have added two branches as non-default  branches against VCS Root. But Triggers like Maven Snapshot dependency and Retry Build only runs on Default branch runs only on default branch.

0
6 comments

Hi,

For Retry Build this shouldn't be the case: https://youtrack.jetbrains.com/issue/TW-23268 if you are using a newer version than 7.1
For Maven Snapshot, it won't work, explanation is here: https://youtrack.jetbrains.com/issue/TW-39726

0
Avatar
Permanently deleted user

OKay gotcha, for non-default there should be atleast one failure build to cause retry trigger to fire. Maven snapshot dependenny trigger will trigger only on maven version for default ones?

0
Avatar
Permanently deleted user

VCS trigger will work on branches added as a part of Branch filters right ?

0

Yes, VCS Trigger allows you to choose which branches to monitor and trigger. Maven snapshot will only trigger on the default branch, and retry build will work with branches but does need that a build fails for it to retry.

0
Avatar
Permanently deleted user

Thanks @Denis. Is there any other way for Maven triggering across branches apart from default branches.

0

Well, not or I'd have pointed it out earlier, although there might be workarounds.

You could add the maven dependency to a "proxy" build configuration, that takes the maven dependency, and then via a REST API call calculates and launches a build on the appropriate branch. You would need to calculate the appropriate branch by yourself (if no need for calculation, just a set branch, then that's easy.

How to make the REST call is explained here: https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-TriggeringaBuild

0

Please sign in to leave a comment.