Is there a way to have a build trigger if a change exclusively contains certain filetypes?
Hello,
Is there a way to have a build trigger if a change exclusively contains certain filetypes?
I want to trigger a build if the change from perforce only has *.uasset files in it, but not if there are any other file types in the change list.
For example this change would trigger a build:
cool_asset.uasset
reall_cool_asset.uassetbut this change would not trigger a build:
cool_asset.uasset
reall_cool_asset.uasset
cool_code_file.h
cool_code_file.cppand neither would this change:
cool_code_file.h
cool_code_file.cpp
So far I have tried adjusting the VCS trigger rules in the following ways:
+:**.uasset
-:**.h
-:**.cpp
+:**.uasset
-:**.h
-:**.cppAll of which work for the first and third example, but still trigger a build for the second example.
Any help would be appreciated.
Please sign in to leave a comment.
There is no complex logic available for the trigger rules.
So, all of your examples will trigger builds for the commits that include changes to the *.uasset files, even if there are other changes. I don't see a way to implement your requirement using the file extensions exclusively, but maybe using the commit comments will suit your workflow? You can limit builds to be triggered only when a commit comment matches a regular expression. Please refer to the https://www.jetbrains.com/help/teamcity/2024.03/configuring-vcs-triggers.html#General+Syntax for details.
Best regards,
Anton