diff --git a/pom.xml b/pom.xml index 26eb706e..57ba9e53 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,7 @@ THE SOFTWARE. 8 2.176.4 false + false 2.39 2.13.0 @@ -107,6 +108,7 @@ THE SOFTWARE. org.jenkins-ci.plugins scm-api + 2.6.4-20200525.215035-2 org.jenkins-ci.plugins @@ -131,6 +133,7 @@ THE SOFTWARE. org.jenkins-ci.plugins scm-api + 2.6.4-20200525.215035-2 tests test diff --git a/src/main/java/org/jenkinsci/plugins/workflow/multibranch/ReadTrustedStep.java b/src/main/java/org/jenkinsci/plugins/workflow/multibranch/ReadTrustedStep.java index 9b05f3f9..4690124b 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/multibranch/ReadTrustedStep.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/multibranch/ReadTrustedStep.java @@ -98,7 +98,7 @@ public static class Execution extends AbstractSynchronousNonBlockingStepExecutio if (defn instanceof CpsScmFlowDefinition) { // JENKINS-31386: retrofit to work with standalone projects, without doing any trust checks. standaloneSCM = ((CpsScmFlowDefinition) defn).getScm(); - try (SCMFileSystem fs = SCMBinder.USE_HEAVYWEIGHT_CHECKOUT ? null : SCMFileSystem.of(job, standaloneSCM)) { + try (SCMFileSystem fs = SCMBinder.USE_HEAVYWEIGHT_CHECKOUT ? null : SCMFileSystem.of(build, standaloneSCM)) { if (fs != null) { // JENKINS-33273 try { String text = fs.child(step.path).contentAsString();