docker-1/tests/functions
Luke Wood aa517f2db1
Persist the permissions of the source file when copying overrides.
If, for whatever reason, a file has been created on the Jenkins home
volume with the wrong permissions (eg. ssh config/keys etc) then it is
currently impossible to override those permissions without going into
the volume and manually editing them.

This change updates the `copy_reference_file` function to use `cp -p`,
which preserves mode, ownership and timestamps of the source files
instead of the destination file being overwritten.
2018-01-24 10:44:52 +00:00
..
.ssh Persist the permissions of the source file when copying overrides. 2018-01-24 10:44:52 +00:00
Dockerfile Persist the permissions of the source file when copying overrides. 2018-01-24 10:44:52 +00:00