JAMES-2477 Add maven enforcer rule for partial builds

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/22050c47
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/22050c47
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/22050c47

Branch: refs/heads/master
Commit: 22050c47906acde2786f27c1f678740092cf62e2
Parents: 8da87f3
Author: benwa <[email protected]>
Authored: Fri Jul 20 10:10:04 2018 +0700
Committer: benwa <[email protected]>
Committed: Fri Jul 20 18:18:43 2018 +0700

----------------------------------------------------------------------
 pom.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/22050c47/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index daa3b8f..7347ff9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3329,6 +3329,27 @@
             <build>
                 <plugins>
                     <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-enforcer-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>enforce-environment-variable-is-set</id>
+                                <goals>
+                                    <goal>enforce</goal>
+                                </goals>
+                                <configuration>
+                                    <rules>
+                                        <requireEnvironmentVariable>
+                                            
<variableName>JAMES_PARTIAL_BUILD_BASE_BRANCH</variableName>
+                                            <message>When using 
'partial-build' profile, you need to define the 
'JAMES_PARTIAL_BUILD_BASE_BRANCH'
+                                            environment variable defining 
which branch should be taken as a reference to detect changes.</message>
+                                        </requireEnvironmentVariable>
+                                    </rules>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
                         <groupId>com.lesfurets</groupId>
                         <artifactId>partial-build-plugin</artifactId>
                         <version>2.6</version>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to