Trigger rules: specify comment to do not trigger build.

Hello.
I need to trigger build when checkins performs in two specified folders except commit message starts with "*".
I try this rules:

+:/projects/**
+:/build.iOS/**
-:comment=^\*:/**



Two first riles works OK, third is ignored.
(I have read forum/docs, but some things in a docs are not clean for me)
3 comments
Comment actions Permalink

hi

you're probably looking for this:
-:comment=^\*(.*)$ 

ziv shapira

0
Comment actions Permalink

No, my regexp is enough to determine asterisk in first place.
this codition works fine:

+:.
-:comment=^\*:/**


Issue is that first two conditions have higher priority then third
Condition order as I know does not matter
0
Comment actions Permalink

It seems I solve it mysefl.
To make comment record has higher priority more nested path should be specified in it.
Correct contitions are

+:/projects/**
+:/build.iOS/**
-:comment=^\*:/**/*



But it is little strange. Why commited file path should affect comment condition? Comment is not related to files.
0

Please sign in to leave a comment.