Jenkinsfile: mount localtime into the docker containers
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/a80627fd Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/a80627fd Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/a80627fd Branch: refs/heads/develop Commit: a80627fde42acea4054e5a67c9f1977bf38eee56 Parents: 7e16f74 Author: Dominik Psenner <[email protected]> Authored: Mon Jul 3 10:50:40 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Mon Jul 3 10:50:40 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/a80627fd/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 302813a..c27d3b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,19 +42,34 @@ pipeline { } } stage('Build mono-2.0') { - agent { dockerfile { dir 'buildtools/docker/builder-mono-2.0' } } + agent { + dockerfile { + dir 'buildtools/docker/builder-mono-2.0' + args '-v /etc/localtime:/etc/localtime:ro' + } + } steps { sh "nant -buildfile:log4net.build compile-momo-2.0" } } stage('Build mono-3.5') { - agent { dockerfile { dir 'buildtools/docker/builder-mono-3.5' } } + agent { + dockerfile { + dir 'buildtools/docker/builder-mono-3.5' + args '-v /etc/localtime:/etc/localtime:ro' + } + } steps { sh "nant -buildfile:log4net.build compile-momo-3.5" } } stage('Build mono-4.0') { - agent { dockerfile { dir 'buildtools/docker/builder-mono-4.0' } } + agent { + dockerfile { + dir 'buildtools/docker/builder-mono-4.0' + args '-v /etc/localtime:/etc/localtime:ro' + } + } steps { sh "nant -buildfile:log4net.build compile-momo-4.0" }
