Jenkins构建失败,出现以下错误:
构建步骤“调用顶级Maven目标”将构建标记为失败
我是Jenkins的新手,不确定为什么构建失败。请查看日志:
[INFO] yarn install v0.27.5
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[WARNING] warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [3/4] Linking dependencies...
[INFO] [4/4] Building fresh packages...
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
我的pom.xml配置如下:
<properties>
<project.frontend.nodeVersion>v6.10.0</project.frontend.nodeVersion>
<project.frontend.yarnVersion>v0.27.5</project.frontend.yarnVersion>
<skipGulp>false</skipGulp>
<build.args>publish:dev:all</build.args>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<skip>${skipGulp}</skip>
</configuration>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<nodeVersion>${project.frontend.nodeVersion}</nodeVersion>
<yarnVersion>${project.frontend.yarnVersion}</yarnVersion>
</configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
<execution>
<id>fix node-sass package</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>rebuild node-sass</arguments>
</configuration>
</execution>
<execution>
<id>yarn</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run ${build.args}</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
我非常感谢你能帮忙处理这个问题。 谢谢。