Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.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
如果Jenkins中有专用节点,则在另一个节点上运行测试_Jenkins - Fatal编程技术网

如果Jenkins中有专用节点,则在另一个节点上运行测试

如果Jenkins中有专用节点,则在另一个节点上运行测试,jenkins,Jenkins,我试图克服在Jenkins上为以下场景配置测试运行的问题: 我在jenkins上设置了一个测试运行(Automation Suite1)作为作业1,在node1上运行 我已经在jenkins服务器上将测试运行(Automation Suite2)设置为job2,以便在node2上运行 我还设置了其他节点,如node3、node4,它们分别为job3和job4配置 问题:当node1被正在运行的job1占用时,job2必须等待job1在该node1上完成,但node3、node4是空闲的,因为

我试图克服在Jenkins上为以下场景配置测试运行的问题:

  • 我在jenkins上设置了一个测试运行(Automation Suite1)作为作业1,在node1上运行
  • 我已经在jenkins服务器上将测试运行(Automation Suite2)设置为job2,以便在node2上运行
  • 我还设置了其他节点,如node3、node4,它们分别为job3和job4配置
问题:当node1被正在运行的job1占用时,job2必须等待job1在该node1上完成,但node3、node4是空闲的,因为此时jobs3和jobs4已完成。当node1被job1占用时,我想为job2使用node3或node4


如何在Jenkins中配置这样的场景?

我在节点之间使用了| |操作符

例:节点1 | |节点2

Restrict where this project can be run
Label Expression:  node1 || node2

我在节点之间使用了| |操作符

例:节点1 | |节点2

Restrict where this project can be run
Label Expression:  node1 || node2