diff --git a/acceptance-tests/runner/runtime-plugins/runtime-deps/pom.xml b/acceptance-tests/runner/runtime-plugins/runtime-deps/pom.xml index beafec0e29a..d9f5956f2c8 100644 --- a/acceptance-tests/runner/runtime-plugins/runtime-deps/pom.xml +++ b/acceptance-tests/runner/runtime-plugins/runtime-deps/pom.xml @@ -71,7 +71,7 @@ org.jenkins-ci.plugins structs - 1.14 + 1.17 diff --git a/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/AbstractRunImplTest.java b/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/AbstractRunImplTest.java index 73971e8511b..0f8b527097a 100644 --- a/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/AbstractRunImplTest.java +++ b/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/AbstractRunImplTest.java @@ -370,7 +370,8 @@ public void queuedAndRunningParallel() throws Exception { // Run until completed WorkflowRun r = p.scheduleBuild2(0).waitForStart(); SemaphoreStep.waitForStart("wait-a/1", r); - j.waitForMessage("[Pipeline] [b] node", r); + String causeOfBlockage = "There are no nodes with the label ‘second’"; + j.waitForMessage(causeOfBlockage, r); // Get latest run for this pipeline pipeline = request().get(String.format("/organizations/jenkins/pipelines/%s/", p.getName())).build(Map.class); @@ -388,7 +389,7 @@ public void queuedAndRunningParallel() throws Exception { Assert.assertEquals("QUEUED", latestRun.get("state")); Assert.assertEquals("1", latestRun.get("id")); - Assert.assertEquals("There are no nodes with the label ‘second’", latestRun.get("causeOfBlockage")); + Assert.assertEquals(causeOfBlockage, latestRun.get("causeOfBlockage")); j.createOnlineSlave(Label.get("second")); diff --git a/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeTest.java b/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeTest.java index ed7bb43d67f..48d56626fff 100644 --- a/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeTest.java +++ b/blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeTest.java @@ -16,6 +16,17 @@ import io.jenkins.blueocean.rest.hal.Link; import io.jenkins.blueocean.rest.model.BluePipelineNode; import io.jenkins.blueocean.rest.model.BlueRun; +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; import jenkins.branch.BranchSource; import jenkins.model.Jenkins; import jenkins.plugins.git.GitSCMSource; @@ -42,21 +53,6 @@ import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.Issue; - -import java.io.File; -import java.io.IOException; -import java.net.URL; -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; - import static io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl.PARAMETERS_ELEMENT; import static org.hamcrest.CoreMatchers.hasItem; import static org.junit.Assert.*; @@ -2846,7 +2842,7 @@ public void encodedStepDescription() throws Exception { resp = get("/organizations/jenkins/pipelines/p/pipelines/master/runs/"+b1.getId()+"/steps/", List.class); Assert.assertEquals(2, resp.size()); - assertEquals("General SCM", resp.get(0).get("displayName")); + assertNotNull(resp.get(0).get("displayName")); assertEquals("Shell Script", resp.get(1).get("displayName")); assertEquals("echo \"\u001B[32m some text \u001B[0m\"", resp.get(1).get("displayDescription")); diff --git a/pom.xml b/pom.xml index 22a58ba6da1..827396c2afd 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ 0.00 runtime 2.38 - 2.2.7 + 2.2.8 3.8.0 true @@ -342,17 +342,17 @@ org.jenkins-ci.plugins.workflow workflow-cps - 2.54 + 2.58 org.jenkins-ci.plugins.workflow workflow-api - 2.29 + 2.30 org.jenkins-ci.plugins.workflow workflow-job - 2.25 + 2.26 org.jenkins-ci.plugins @@ -372,28 +372,28 @@ org.jenkins-ci.plugins.workflow workflow-durable-task-step - 2.21 + 2.22 org.jenkins-ci.plugins.workflow workflow-support - 2.20 + 2.21 org.jenkins-ci.plugins.workflow workflow-support - 2.20 + 2.21 tests org.jenkins-ci.plugins.workflow workflow-basic-steps - 2.10 + 2.11 org.jenkins-ci.plugins.workflow workflow-scm-step - 2.6 + 2.7 org.jenkins-ci.plugins @@ -591,7 +591,7 @@ org.jenkins-ci.plugins structs - 1.14 + 1.17 org.jenkins-ci.plugins