2016-02-28 564 views
0

Devs有巡航控制与svn。我只在http请求到达时运行测试。有詹金斯和红宝石测试,需要集中在一个繁重的工作。下载的multijob插件,创建一个阶段,其中有3个测试。测试不会开始,并会长时间继续执行。jenkins不运行mulijob项目

Started by user anonymous 
[EnvInject] - Loading node environment variables. 
Building in workspace /var/lib/jenkins/jobs/full_payps/workspace 
Xvfb starting$ Xvfb :2 -screen 0 1280x1080x16 -fbdir /var/lib/jenkins/xvfb-4-5075789107118417278.fbdir 
>> Job status: [dif_value_client] the 'build only if scm changes' feature is disabled. 
Starting build job dif_value_client. 
>> Job status: [client_success_an] the 'build only if scm changes' feature is disabled. 
Starting build job client_success_an. 
>> Job status: [client_success] the 'build only if scm changes' feature is disabled. 
Starting build job client_success. 
Aborting all subjobs. 
Xvfb stopping 
Build was aborted 
Aborted by anonymous 
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered 
Finished: ABORTED 

回答

1

您必须安装Authorize Project plugin(或类似的,但现在它是唯一的一个),并配置建立授权策略。

在全球詹金斯的安全设置,你需要激活你要允许您的实例(Manage Jenkins-> Configure Global Security -> Access Control for Builds -> Configure Build Authorizations in Project Configuration -> Select Run as ...

在你需要选择一个策略和配置它的每个上游作业配置哪些策略。

+0

谢谢,但问题是我只有一个执行者。当我将其更改为值“2”的父作业仍在执行并且作业1启动时。现在我必须解决parraleling,因为我不能在一瞬间运行超过1个测试。 – 2500mA