This is an automated email from the ASF dual-hosted git repository.

matthieu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new ede59d9  JAMES-3500 Do not run previous stages upon tests (#298)
ede59d9 is described below

commit ede59d9e65943a93225b78970ad27c10a46d4749
Author: Tellier Benoit <[email protected]>
AuthorDate: Thu Mar 25 14:44:10 2021 +0700

    JAMES-3500 Do not run previous stages upon tests (#298)
---
 Jenkinsfile |   4 +-
 pom.xml     | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index eb8d2a0..065d9af 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -93,7 +93,7 @@ pipeline {
         stage('Stable Tests') {
             steps {
                 echo 'Running tests'
-                sh 'mvn -B -e -fae test ${MVN_SHOW_TIMESTAMPS}'
+                sh 'mvn -B -e -fae test ${MVN_SHOW_TIMESTAMPS} -P ci-test'
             }
             post {
                 always {
@@ -111,7 +111,7 @@ pipeline {
             steps {
                 echo 'Running unstable tests'
                 catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-                    sh 'mvn -B -e -fae test -Punstable-tests 
${MVN_SHOW_TIMESTAMPS}'
+                    sh 'mvn -B -e -fae test -Punstable-tests 
${MVN_SHOW_TIMESTAMPS} -P ci-test'
                 }
             }
             post {
diff --git a/pom.xml b/pom.xml
index 6f3480f..8e1a0bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3298,6 +3298,7 @@
                 </configuration>
                 <executions>
                     <execution>
+                        <id>build-test-jars</id>
                         <goals>
                             <goal>test-jar</goal>
                         </goals>
@@ -3366,6 +3367,7 @@
                 </dependencies>
                 <executions>
                     <execution>
+                        <id>check-style</id>
                         <goals>
                             <goal>check</goal>
                         </goals>
@@ -3605,5 +3607,150 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>ci-test</id>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-checkstyle-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>check-style</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-compiler-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>default-compile</id>
+                                    <phase>none</phase>
+                                </execution>
+                                <execution>
+                                    <id>default-testCompile</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-enforcer-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>enforce-maven</id>
+                                    <phase>none</phase>
+                                </execution>
+                                <execution>
+                                    <id>enforce-maven-version</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-jar-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>build-test-jars</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            
<artifactId>maven-project-info-reports-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            
<artifactId>maven-remote-resources-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>process-resource-bundles</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-resources-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>default-resources</id>
+                                    <phase>none</phase>
+                                </execution>
+                                <execution>
+                                    <id>default-testResources</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-site-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>attach-descriptor</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-source-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>attach-sources</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+
+                        <plugin>
+                            <groupId>pl.project13.maven</groupId>
+                            <artifactId>git-commit-id-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>get-the-git-infos</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>net.alchim31.maven</groupId>
+                            <artifactId>scala-maven-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>scala-compile-first</id>
+                                    <phase>none</phase>
+                                </execution>
+                                <execution>
+                                    <id>scala-test-compile</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>com.github.ekryd.sortpom</groupId>
+                            <artifactId>sortpom-maven-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>strict-pom-ordering</id>
+                                    <phase>none</phase>
+                                </execution>
+                            </executions>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
     </profiles>
 </project>

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

Reply via email to