我正在Jenkins上运行构建,我想启用-x开关,以便可以进行一些调试。这是我的pom.xml文件:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.dqsalpha-dev.app</groupId>
<artifactId>dqsalpha</artifactId>
<version>0.0.1001</version>
<build>
<plugins>
<plugin>
<version>1.6.0</version>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution><!-- Run our version calculation script -->
<id>Version Calculation</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/@test.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
有没有办法用pom文件启用-X开关?
或者,我可以将-X开关添加到Jenkins配置中,如下所示:
最佳答案
您应该能够更新Jenkins中的Goals and options
字段,使其包含-X
开关,如下所示:-X clean install