小编dou*_*g78的帖子

Jenkins Cobertura插件找不到coverage.xml文件

我在Jenkins 1.502中有一个带有jenkins-cobertura插件版本1.9.3的多模块maven项目.我的cobertura.xml文件是在web-app模块中生成的,当我在Jenkins中浏览项目的工作区时,我可以看到它.我已经尝试了多种不同的方法来处理后构建操作中的路径设置以指向cobertura.xml文件,但插件一直说它无法找到它.我收到错误:

[Cobertura]使用"app/web-app/target/site/cobertura/cobertura.xml"模式相对于'C:\ Jenkins\jobs\Dev - appName - trunk\workspace'找不到覆盖结果

我的web应用程序的maven pom.xml在pom.xml的部分中设置了cobertura,如下所示:

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <version>2.5.1</version>
            <configuration>
                <formats>                       
                    <format>xml</format>
                    <format>html</format>
                </formats>
                <instrumentation>
                    <excludes>
                        <exclude>**/*Test.class</exclude>
                        <exclude>**/Mock*.class</exclude>
                    </excludes>
                </instrumentation>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>cobertura</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

同样在jenkins中,我的maven构建选项如下:

-Pqa clean cobertura:cobertura安装

编辑 我发现了我的问题,我将文件命名为"cobertura.xml"而不是"coverage.xml"或更好地将它们全部用

**/target/site/cobertura/*.xml

cobertura maven jenkins

8
推荐指数
2
解决办法
1万
查看次数

内联表单 Bootstrap 不起作用

我不明白为什么这不起作用。我试图将这两个表单元素并排放置。此外,我希望能够并排放置一些元素,并将一些元素以相同的形式排列在下方(因为将来的元素将位于这两个下方)。由于我使用的是 Struts 1,因此我忽略了 role="form",这破坏了<html:form>标签。

<form name="someForm" method="post" action="/someAction.do" class="form-inline">

<div class="form-group">
    <div>
        <label for="startDate" >                
            From                
        </label>            
        <input type="text" name="startDate" value="" readonly="readonly" id="startDate" style="width: 70px;" class="datepicker form-control">
    </div>          
</div>
<div class="form-group">
    <div>           
        <label for="endDate">               
            To              
        </label>            
        <input type="text" name="endDate" value="" readonly="readonly" id="endDate" style="width: 70px;" class="datepicker form-control">
    </div>
</div>  
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

JSFiddle

html twitter-bootstrap

3
推荐指数
1
解决办法
7210
查看次数

标签 统计

cobertura ×1

html ×1

jenkins ×1

maven ×1

twitter-bootstrap ×1