Skip to content

Commit 4d348e7

Browse files
committedOct 5, 2021
WIP prepare merge with upstream master
1 parent 48dfdf7 commit 4d348e7

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed
 

‎.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
/.factorypath
55
/.settings/
66
/work/
7-
87
/.idea/
98
*.iml
109
nbactions.xml
1110
nb-configuration.xml
1211
*.bak
1312
/.vscode/
14-
1513
**/.DS_Store

‎pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<jenkins.host.address />
4848
<slaveAgentPort />
4949
<java.level>8</java.level>
50-
<jenkins.version>2.277.1</jenkins.version>
50+
<jenkins.version>2.263.1</jenkins.version>
5151
<no-test-jar>false</no-test-jar>
5252
<useBeta>true</useBeta>
5353
</properties>
@@ -93,7 +93,7 @@
9393
<dependency>
9494
<groupId>org.jenkins-ci.plugins</groupId>
9595
<artifactId>durable-task</artifactId>
96-
<version>1.39</version>
96+
<version>1.35</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>org.jenkins-ci.plugins</groupId>

‎src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateBuilder.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution;
4848
import org.csanchez.jenkins.plugins.kubernetes.pod.decorator.PodDecorator;
4949
import org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume;
50+
import org.csanchez.jenkins.plugins.kubernetes.volumes.ConfigMapVolume;
5051
import org.kohsuke.accmod.Restricted;
5152
import org.kohsuke.accmod.restrictions.NoExternalUse;
5253

@@ -81,7 +82,6 @@
8182
import static org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.combine;
8283
import static org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.isNullOrEmpty;
8384
import static org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.substituteEnv;
84-
import org.csanchez.jenkins.plugins.kubernetes.volumes.ConfigMapVolume;
8585

8686
/**
8787
* Helper class to build Pods from PodTemplates
@@ -179,10 +179,10 @@ public Pod build() {
179179

180180
if (volume instanceof ConfigMapVolume) {
181181
final ConfigMapVolume configmapVolume = (ConfigMapVolume) volume;
182-
//We need to normalize the subPath or we can end up in really hard to debug issues Just in case.
183-
final String subPath = substituteEnv(Paths.get(configmapVolume.getSubPath()).normalize().toString().replace("\\", "/"));
184-
volumeMountBuilder = volumeMountBuilder.withSubPath(subPath);
185-
}
182+
//We need to normalize the subPath or we can end up in really hard to debug issues Just in case.
183+
final String subPath = substituteEnv(Paths.get(configmapVolume.getSubPath()).normalize().toString().replace("\\", "/"));
184+
volumeMountBuilder = volumeMountBuilder.withSubPath(subPath);
185+
}
186186
volumeMounts.put(mountPath, volumeMountBuilder.build());
187187
volumes.put(volumeName, volume.buildVolume(volumeName));
188188
i++;

0 commit comments

Comments
 (0)