You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/jenkins/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,18 @@ referenceContent:
160
160
161
161
The example above will create `/var/jenkins_home/foo.txt` and `/var/jenkins_home/bar/baz.txt`.
162
162
163
+
For adding custom scripts that should be executable, the `defaultMode` can be set on the volume:
164
+
165
+
```yaml
166
+
referenceContent:
167
+
- relativeDir: my-scripts
168
+
defaultMode: 0555
169
+
data:
170
+
- fileName: foo.sh
171
+
fileContent: |
172
+
echo foo
173
+
```
174
+
163
175
#### Plugins
164
176
165
177
Reference content may be used to configure plugins to be installed with the [mechanism](https://github.com/jenkinsci/docker/blob/master/README.md#preinstalling-plugins) that comes with the Jenkins Docker image.
0 commit comments