我用特拉维斯·CI和工作服来做一个项目。
我得到了错误Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 422: Unprocessable Entity (Couldn't find a repository matching this job.)。您可以看到构建那里。
我的pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<format>xml</format>
<maxmem>256m</maxmem>
<!-- aggregated reports for multi-module projects -->
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<coberturaReports>
<coberturaReport>
${basedir}/target/coverage.xml
</coberturaReport>
</coberturaReports>
<sourceEncoding>UTF-8</sourceEncoding>
<serviceName>travis-ci</serviceName>
<serviceJobId>${env.TRAVIS_JOB_ID} </serviceJobId>
</configuration>
</plugin>我用的是免费的工作服。为什么工作服不能得到我的身材?
谢谢
发布于 2015-01-25 22:13:47
以下是解决办法:
环境变量在travis环境中是可用的,但是我需要为工作服任务注入它。
这意味着添加-DTRAVIS_JOB_ID=$TRAVIS_JOB_ID以使其在pom.xml中可用。
travis.yml中的最后一行:
- mvn clean -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID cobertura:cobertura coveralls:report
https://stackoverflow.com/questions/28120891
复制相似问题