Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux上的Fitnesse与Jenkins_Linux_Jenkins_Fitnesse - Fatal编程技术网

Linux上的Fitnesse与Jenkins

Linux上的Fitnesse与Jenkins,linux,jenkins,fitnesse,Linux,Jenkins,Fitnesse,我一直试图与詹金斯一起在centos7机器上安装Fitnesse,但遇到了一些问题 我让Jenkins使用Fitnesse插件并启动了Fitnesse的一个实例,该实例运行良好,但它似乎无法连接到已启动的Fitnesse服务器,并显示错误消息“Fitnesse服务器未在URL上30000ms启动:” 起初,我认为localhost无法连接到它是个问题,但我可以使用firefox和localhost在centos机器上连接:而Jenkins也在尝试(并且失败)连接到它。因此,我使用telnet对其

我一直试图与詹金斯一起在centos7机器上安装Fitnesse,但遇到了一些问题

我让Jenkins使用Fitnesse插件并启动了Fitnesse的一个实例,该实例运行良好,但它似乎无法连接到已启动的Fitnesse服务器,并显示错误消息“Fitnesse服务器未在URL上30000ms启动:”

起初,我认为localhost无法连接到它是个问题,但我可以使用firefox和localhost在centos机器上连接:而Jenkins也在尝试(并且失败)连接到它。因此,我使用telnet对其进行ping,它产生以下结果:

Trying ::1...
Connected to localhost.
Escape character is '^]'.
HTTP/1.1 408 Request Time-out
Content-Length: 2131
Connection: close
Server: FitNesse-v20150424
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html>
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <title>Error Occurred</title>
    <!--[if lt IE 9]>
   <script>
    document.createElement('header');
    document.createElement('nav');
    document.createElement('section');
    document.createElement('article');
    document.createElement('footer');
   </script>
  <![endif]-->

  <link rel="shortcut icon" type="image/png" href="/files/fitnesse/images/favicon.png" />
  <link rel="stylesheet" type="text/css" href="/files/fitnesse/css/fitnesse_wiki.css" />
  <link rel="stylesheet" type="text/css" href="/files/fitnesse/css/fitnesse_pages.css" />
  <link rel="stylesheet" type="text/css" href="/files/fitnesse/wysiwyg/wysiwyg.css" media="screen"/>
  <link rel="stylesheet" type="text/css" href="/files/fitnesse/bootstrap/css/fitnesse-bootstrap.css">
  <link rel="stylesheet" type="text/css" href="/files/fitnesse/question.mark/question.mark.css" />

  <script src="/files/fitnesse/javascript/jquery-1.7.2.min.js" type="text/javascript"></script>
  <script src="/files/fitnesse/javascript/fitnesse.js" type="text/javascript"></script>

  <script src="/files/fitnesse/bootstrap/js/bootstrap.js" type="text/javascript"></script>
  <script src="/files/fitnesse/bootstrap/js/respond.js" type="text/javascript"></script>

 </head>
 <body class="error">

  <nav class="navbar-fixed-top " role="navigation">
   <div class="navbar navbar-default">
   <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
     <a class="navbar-brand" href="/FrontPage"><span>FitNesse</span></a>
    </div>


   </div>
   <ol class="page-actions btn-group">
 <li class="expandall btn btn-xs">Expand All</li>
 <li class="collapseall btn btn-xs">Collapse All</li>
</ol>

<ol class="breadcrumb">
 <li>Error Occurred</li>
</ol>
  </nav>

  <header>
      </header>

  <article>
    <center>The client request has been unproductive for too long. It has timed out and will now longer be processed.</center>
  </article>


 </body>
</html>

Connection closed by foreign host
正在尝试::1。。。
已连接到本地主机。
转义字符为“^]”。
HTTP/1.1 408请求超时
内容长度:2131
连接:关闭
服务器:FitNesse-v20150424
内容类型:text/html;字符集=UTF-8
发生错误
  • 全部展开
  • 全部折叠
  • 发生错误
  • 客户机请求的无效时间太长了。它已超时,现在将不再处理。 外部主机关闭的连接

    所以看起来它实际上与Fitnesse有关,但是Fitnesse没有做出正确的反应或者其他什么?是否有人对问题或可能的解决方案有任何见解?

    是否在节点上设置此管道作业

    Fitnesse插件似乎总是从主机连接到Fitnesse。因此,如果fitnesse是在节点上启动的,localhost将不会应答


    目前,您只能在主机上运行fitnesse作业。

    我无法真正帮助您使用fitnesse插件。但是,如果您的目标是在Jenkins上运行测试,并在测试报告中添加HTML,那么我建议创建一个jUnit测试,用
    @RunWith(“fitnessrunner.class”)
    注释。然后,任何CI服务器都可以将其作为普通Java单元测试运行来运行。描述测试结果的HTML页面在您的工作区中生成,可以作为工件或使用HTML发布器插件发布。不需要特殊的FitNesse插件。这种设置使得开发人员可以很容易地从开发环境中调试设备或复制测试结果……关于使用jUnit运行的更多详细信息,我一定会详细介绍!