Repository: brooklyn-library Updated Branches: refs/heads/master 01cc0b584 -> 6a214e773
jenkins: add settings.xml for 'mvn deploy' Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/35612262 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/35612262 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/35612262 Branch: refs/heads/master Commit: 35612262cf8c782d2152049d8b865cdd094c03dd Parents: 01cc0b5 Author: Aled Sage <aled.s...@gmail.com> Authored: Tue Sep 25 12:26:29 2018 +0100 Committer: Aled Sage <aled.s...@gmail.com> Committed: Tue Sep 25 12:26:29 2018 +0100 ---------------------------------------------------------------------- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/35612262/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 67c1b79..8300127 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,7 +44,7 @@ node(label: 'ubuntu') { // Conditional stage to deploy artifacts, when not building a PR if (env.CHANGE_ID == null) { stage('Deploy artifacts') { - environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -u 910:910 -v ${WORKSPACE}:/usr/build -w /usr/build') { + environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -u 910:910 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') { sh 'mvn deploy -DskipTests -Duser.home=/var/maven -Duser.name=$(id -un 910)' } }