Skip to content

Commit

Permalink
Merge pull request #918 from Vlatombe/octal-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe authored Dec 13, 2020
2 parents c97a0de + b0737cd commit 859d238
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jackson2-api</artifactId>
<version>2.11.3</version>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,11 @@ public void substituteEnv() throws Exception {
r.assertLogContains("xxx" + home + "xxx", b);
}

@Test
public void octalPermissions() throws Exception {
r.assertBuildStatusSuccess(r.waitForCompletion(b));
}

private <R extends Run> R assertBuildStatus(R run, Result... status) throws Exception {
for (Result s : status) {
if (s == run.getResult()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
podTemplate(yaml: '''
spec:
volumes:
- name: jenkins-agent
projected:
sources:
- secret:
name: container-secret
items:
- key: password
path: my-group/my-password
mode: 0777
''') {
node(POD_LABEL){
sh 'true'
}
}

0 comments on commit 859d238

Please sign in to comment.