Fitnesse在Linux上与Jenkins合作

时间:2016-03-04 11:31:36

标签: linux jenkins fitnesse

我一直在尝试用Jenkins在centos7机器上安装Fitnesse,但遇到了一些问题。

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

首先我认为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

所以看起来它实际上正在与Fitnesse联系,但Fitnesse没有正确回应或什么?有没有人对问题或可能的解决方案有任何见解?

1 个答案:

答案 0 :(得分:0)

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

似乎Fitnessit插件始终从主机连接到Fitnesse。因此,如果fitnesse是在节点上启动的,则本地主机将不会回答。

就目前而言,您只需要在主服务器上运行fitnesse作业即可。