Configuring Maven Artifact Change Trigger
Last modified: 20 April 2023Since TeamCity 5.0, you can configure triggering of a build, if a specified Maven artifact has changed.
To set new build trigger, navigate to the Dependencies triggers settings of a build configuration and click the corresponding link to open Add Maven Artifact Change Trigger dialog. Specify mandatory parameters of an artifact and please pay attention to the syntax of the version ranges
Version Ranges Syntax
While specifying version ranges it is recommended to use the following syntax, as proposed in the Maven documentation:
Range | Meaning |
---|---|
| x <= 1.0 |
| "Soft" requirement on 1.0 (just a recommendation - helps select the correct version if it matches all ranges) |
| Hard requirement on 1.0 |
| 1.2 <= x <= 1.3 |
| 1.0 <= x < 2.0 |
| x >= 1.5 |
| x <= 1.0 or x >= 1.2. Multiple sets are comma-separated |
| This excludes 1.1, if it is known not to work in combination with this library |
Thanks for your feedback!