Trigger pattern not working

I had this trigger pattern on one of my builds:

-:.
+:Libraries
-:Libraries/**/AssemblyInfo.cs



This worked great.
Then I added another vcs root and changed the pattern to:
-:.
+:root=Sales.Main:Libraries
-:root=Sales.Main:Libraries/**/AssemblyInfo.cs

Where Sales.Main is my original vcs root. This new trigger does not work. I have also tried the original without any luck.
I also tried changing the first pattern to:
-:root=Sales.Main:.
but that did not work either.

Anyone have an idea on what the correct pattern should be?

TC versions:  4.5.4 (build 9071) Enterprise
VCS: TFS

-eric

0
6 comments
Avatar
Permanently deleted user

Jetbrains, now that you are back from vacation, do you have an idea to make this work.

0

Sorry for delay.

Could you please provide current settings that do not work as well as examples of VCS changes when build should and should not be triggered?

0
Avatar
Permanently deleted user

VCS:
     root#1: Sales.Main  root: $/Sales/Main CheckoutRule: +:.=>Code
     rrot#2: Shared.Scripts root: $/Shared/Scripts CheckoutRule: +:.=>Scripts

directory structure:
main
     UI Code
     Libraries
           code dir 1
           code dir 2    
           Tests


Build Trigger:
-:.
+:[root=Shared.Main]:Libraries/**
-:[root=Shared.Main]Libraries/**/AssemblyInfo.cs

I do not want to trigger the build:
If anything is checked into the Shared scripts
If any of the AssemblyInfo.cs file change

I do want to trigger a build:
If anything within the code dirs gets checked in (except the assemblyInfo files)

0

Trigger rules work for mapped file paths, i.e. for file paths shown by TeamCity server. In your case if a file Libraries/file.txt is changed it will be shown in the web UI as: Scripts/Libraries/file.txt and trigger rule should include Scripts (or use wildcard **). Please try the following rules:
-:**/AssemblyInfo.cs
-:root=<Shared Scripts root name>:Scripts/**

This is an example, because it seems you've a mistake in VCS root names. Anyway, the rule is the following: in trigger rules use file paths as they shown by TeamCity, not the paths inside repository.

0
Avatar
Permanently deleted user

Sorry for the delay in trying this out.
That worked perfectly.
I did not realize that the build trigger worked off the mapped file paths.


thanks
eric.

0

Well, actually we tried to reduce confusion when we've choosen to work with mapped files

0

Please sign in to leave a comment.