You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/09/18 12:25:32 UTC

[camel] branch CAMEL-17315-test-ci created (now be49b6ef637)

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

nfilotto pushed a change to branch CAMEL-17315-test-ci
in repository https://gitbox.apache.org/repos/asf/camel.git


      at be49b6ef637 Display log file on failure

This branch includes the following new commits:

     new be49b6ef637 Display log file on failure

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: Display log file on failure

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-17315-test-ci
in repository https://gitbox.apache.org/repos/asf/camel.git

commit be49b6ef63740f197ca7f825f415749538204194
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Mon Sep 18 14:24:44 2023 +0200

    Display log file on failure
---
 tooling/maven/camel-package-maven-plugin/pom.xml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/tooling/maven/camel-package-maven-plugin/pom.xml b/tooling/maven/camel-package-maven-plugin/pom.xml
index 9b3cf688ae7..60892612387 100644
--- a/tooling/maven/camel-package-maven-plugin/pom.xml
+++ b/tooling/maven/camel-package-maven-plugin/pom.xml
@@ -248,6 +248,29 @@
                             </dependency>
                         </dependencies>
                     </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                                <phase>post-integration-test</phase>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <executable>bash</executable>
+                            <arguments>
+                                <argument>-c</argument>
+                                <argument>cat target/it/HeaderSupport/build.log | grep "BUILD FAILURE" &amp;&amp; cat target/it/HeaderSupport/build.log</argument>
+                            </arguments>
+                            <successCodes>
+                                <successCode>0</successCode>
+                                <successCode>1</successCode>
+                            </successCodes>
+                        </configuration>
+                    </plugin>
                 </plugins>
             </build>
         </profile>