Skip to content

Commit e3b5384

Browse files
committed
Move docker logs printing to jar-runner project
1 parent d5eb9c4 commit e3b5384

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

flink-jar-runner/pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,5 +377,37 @@
377377
</dependency>
378378
</dependencies>
379379
</profile>
380-
</profiles>
380+
381+
<profile>
382+
<id>ci</id>
383+
384+
<build>
385+
<plugins>
386+
<plugin>
387+
<groupId>org.codehaus.mojo</groupId>
388+
<artifactId>exec-maven-plugin</artifactId>
389+
<version>3.0.0</version>
390+
<executions>
391+
<execution>
392+
<goals>
393+
<goal>exec</goal>
394+
</goals>
395+
<phase>post-integration-test</phase>
396+
<configuration>
397+
<!-- print logs from docker, helpful when troubleshooting -->
398+
<executable>docker</executable>
399+
<skip>${skipTests}</skip>
400+
<arguments>
401+
<argument>logs</argument>
402+
<argument>flink-jar-runner-jobmanager-1</argument>
403+
</arguments>
404+
</configuration>
405+
</execution>
406+
</executions>
407+
</plugin>
408+
</plugins>
409+
</build>
410+
411+
</profile>
412+
</profiles>
381413
</project>

pom.xml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@
194194
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
195195

196196
<excludes>
197-
<exclude>*/src/test/resources/**</exclude>
198-
<exclude>*/m2e-target/**</exclude>
197+
<exclude>src/test/resources/**</exclude>
198+
<exclude>m2e-target/**</exclude>
199199
</excludes>
200200
</licenseSet>
201201
</licenseSets>
@@ -340,34 +340,6 @@
340340
<properties>
341341
<gcf.skip>true</gcf.skip>
342342
</properties>
343-
344-
<build>
345-
<plugins>
346-
<plugin>
347-
<groupId>org.codehaus.mojo</groupId>
348-
<artifactId>exec-maven-plugin</artifactId>
349-
<version>3.0.0</version>
350-
<executions>
351-
<execution>
352-
<goals>
353-
<goal>exec</goal>
354-
</goals>
355-
<phase>post-integration-test</phase>
356-
<configuration>
357-
<!-- print logs from cloud-compilation service, helpful when troubleshooting -->
358-
<executable>docker</executable>
359-
<arguments>
360-
<argument>logs</argument>
361-
<argument>flink-jar-runner-jobmanager-1</argument>
362-
</arguments>
363-
</configuration>
364-
</execution>
365-
</executions>
366-
</plugin>
367-
368-
</plugins>
369-
</build>
370-
371343
</profile>
372344
<profile>
373345
<!-- just compile, skip all other checks -->

0 commit comments

Comments
 (0)