@Issue("JENKINS-26123") @Test public void noWait() throws Exception { j.createFreeStyleProject("ds").setAssignedLabel(Label.get("nonexistent")); WorkflowJob us = j.jenkins.createProject(WorkflowJob.class, "us"); us.setDefinition(new CpsFlowDefinition("build job: 'ds', wait: false")); j.assertBuildStatusSuccess(us.scheduleBuild2(0)); }
private static Label getLabelWithoutCustomImage(Label label, String customDockerImage) { return Label.get(label.toString().replace(CUSTOM_IMAGE_SEPARATOR + customDockerImage, "")); }
@Override public Label getAssignedLabel(SubTask task) { return Label.get(label); }