詹金斯跳过测试 [英] Skip tests in Jenkins

查看:112
本文介绍了詹金斯跳过测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Jenkins上为Maven项目建立了一个构建,我想在不运行任何测试的情况下构建它.我尝试在目标字段中输入全新安装-DskipTests",如下所示:

I've set up a build on Jenkins for a Maven project, and I would like to build it without running any of the tests. I've tried entering "clean install -DskipTests" in the goals field, like this:

但是它不起作用.我在做什么错?

But it doesn't work. What am I doing incorrectly?

注意:我想跳过测试而不碰pom.我有一个单独的版本可以运行测试.

推荐答案

问题是我省略了=true.通过输入以下命令,我可以在不运行测试的情况下进行构建:

The problem is that I omitted =true. I was able to build without running tests by entering:

clean install -DskipTests=true

这篇关于詹金斯跳过测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆