csj2018

1.项目的pom.xml加入build

   <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
            </plugin>
        </plugins>
    </build>

2.jenkins安装需要用到的插件

系统管理-插件管理,安装 Maven Integration和testNg

3.建立工程

构建一个maven项目的任务

build填入pom.xml的地址和构建语句

4.构建任务


分类:

技术点:

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-11-06
  • 2021-07-30
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-12-26
  • 2022-02-06
  • 2022-12-23
  • 2021-07-29
  • 2021-07-05
相关资源
相似解决方案