jbehave与jenkins的集成 [英] Integration of jbehave with jenkins

查看:218
本文介绍了jbehave与jenkins的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将jbehave与jenkins集成。但我不知道如何做到这一点。我看到我必须在Jenkins创建一个任务,但我不知道我应该用这个任务连接jbehave。

I have to integrate jbehave with jenkins. But I don't have idea how to do this. I saw that I have to create a task in Jenkins, but I don't know where I should wire jbehave with this task.

有人可以帮助我吗?

感谢,

Sarang

推荐答案

所以我假设你有JBehave与Maven集成,正确吗?
简单的构建环境可以设置如下:

So I'm assuming you have JBehave integrated with Maven, correct? The simple build environment can be set up as follows:


  1. 转到Jenkins并添加一个类型为Build a maven2 / 3项目

  2. 将您的项目配置为从您使用的任何源存储库中检出。

  3. 配置项目的构建阶段无论你需要什么Maven目标(安装都可能工作)

  4. 点击保存,你有一个工作项目将执行从命令行。

  1. Go to Jenkins and add a new job of type "Build a maven2/3 project"
  2. Configure your project to check out your from whatever source repository you use.
  3. Configure the build phase of the project to run whatever Maven goal you need ("install" will probably work)
  4. Hit save and you have a working project that will execute exactly as it would from a command line.

如果你想在Jenkins中看到JBehave测试输出,你也应该按照这些说明配置Jenkins / XUnit插件: http://jbehave.org/reference/stable/hudson-plugin.html

If you want to see the JBehave test output rendered nicely in Jenkins you should also follow these instructions to configure the Jenkins/XUnit plugin: http://jbehave.org/reference/stable/hudson-plugin.html

您还需要确保您的项目配置为使用StoryReporterBuilder中的XML输出格式,以使用插件(上面的说明中未提及)。

You will also need to make sure your project is configured to use the XML Output format in your StoryReporterBuilder to make use of the plugin (not mentioned in the instructions above).

这篇关于jbehave与jenkins的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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