Skip to content

Commit ca060e6

Browse files
jetersenbitwiseman
authored andcommitted
add support for build parameters
1 parent 91fd65d commit ca060e6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ THE SOFTWARE.
6868
<java.level>8</java.level>
6969
<jenkins.version>2.176.4</jenkins.version>
7070
<no-test-jar>false</no-test-jar>
71+
<no-test-jar>false</no-test-jar>
7172
<workflow-job-plugin.version>2.39</workflow-job-plugin.version> <!-- TODO: Remove after https://github.com/jenkinsci/bom/pull/264 is released. -->
7273
<subversion-plugin.version>2.13.0</subversion-plugin.version>
7374
</properties>
@@ -107,6 +108,7 @@ THE SOFTWARE.
107108
<dependency>
108109
<groupId>org.jenkins-ci.plugins</groupId>
109110
<artifactId>scm-api</artifactId>
111+
<version>2.6.4-20200525.215035-2</version>
110112
</dependency>
111113
<dependency>
112114
<groupId>org.jenkins-ci.plugins</groupId>
@@ -131,6 +133,7 @@ THE SOFTWARE.
131133
<dependency>
132134
<groupId>org.jenkins-ci.plugins</groupId>
133135
<artifactId>scm-api</artifactId>
136+
<version>2.6.4-20200525.215035-2</version>
134137
<classifier>tests</classifier>
135138
<scope>test</scope>
136139
</dependency>

src/main/java/org/jenkinsci/plugins/workflow/multibranch/ReadTrustedStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static class Execution extends AbstractSynchronousNonBlockingStepExecutio
9898
if (defn instanceof CpsScmFlowDefinition) {
9999
// JENKINS-31386: retrofit to work with standalone projects, without doing any trust checks.
100100
standaloneSCM = ((CpsScmFlowDefinition) defn).getScm();
101-
try (SCMFileSystem fs = SCMBinder.USE_HEAVYWEIGHT_CHECKOUT ? null : SCMFileSystem.of(job, standaloneSCM)) {
101+
try (SCMFileSystem fs = SCMBinder.USE_HEAVYWEIGHT_CHECKOUT ? null : SCMFileSystem.of(build, standaloneSCM)) {
102102
if (fs != null) { // JENKINS-33273
103103
try {
104104
String text = fs.child(step.path).contentAsString();

0 commit comments

Comments
 (0)