Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31fcdf7

Browse files
Update git-triggers.md
1 parentb6f36bb commit31fcdf7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

‎_docs/pipelines/triggers/git-triggers.md‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,11 @@ The Modified files option accepts glob expressions. The paths are relative to th
360360
```
361361
/package.json
362362
/Dockerfile*
363-
my-subproject/
363+
my-subproject/*
364+
my-subproject/**
364365
my-subproject/sub-subproject/package.json
365366
my-subproject//pom.xml
366-
!config/
367+
!config/**
367368
368369
```
369370

@@ -375,9 +376,9 @@ You can also use relative paths with dot-slash. Therefore `./package.json` and `
375376
You can also define[multiple expressions](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm){:target="\_blank"} like this, with a maximum of 65k characters for the field:
376377

377378
```
378-
{app/,test/}
379-
{/package.json,my-subproject/}
380-
!{deployment/,/version.cfg}
379+
{app/*,test/**}
380+
{/package.json,my-subproject/**}
381+
!{deployment/*,/version.cfg}
381382
```
382383

383384
Once a commit happens to a code repository, Codefresh will see which files are changed from the Git provider and trigger the build only if the changed files match the glob expression. If there is no match no build will be triggered.
@@ -409,9 +410,9 @@ max-width="70%"
409410

410411
And then in the Git trigger for each one we set the modified files field to the following values:
411412

412-
* For the*build-nestjs-only* pipeline*MODIFIED FILES* has`my-nestjs-project/`.
413-
* For the*build-java-only* pipeline*MODIFIED FILES* has`my-java-project/`.
414-
* For the*build-rails-only* pipeline*MODIFIED FILES* has`my-rails-project/`.
413+
* For the*build-nestjs-only* pipeline*MODIFIED FILES* has`my-nestjs-project/**`.
414+
* For the*build-java-only* pipeline*MODIFIED FILES* has`my-java-project/**`.
415+
* For the*build-rails-only* pipeline*MODIFIED FILES* has`my-rails-project/**`.
415416

416417
This way as multiple developers work on the Git repository only the affected projects will actually build. A change to the NestJS project will*not* build the Rails project as well. Also, if somebody changes*only* the README file and nothing else, no build will be triggered at all (which is a good thing as the source code is exactly the same).
417418

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp