Fix deploy job; use absolute path for HOME
This commit is contained in:
parent
c97f0cc4dd
commit
c423af8311
1 changed files with 7 additions and 1 deletions
|
|
@ -3,12 +3,18 @@ pipeline {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
dir 'jenkins'
|
dir 'jenkins'
|
||||||
label 'docker'
|
label 'docker'
|
||||||
|
// Required for the serverless-python-requirements plugin to install
|
||||||
|
// Python requirements using the AWS build images, running Docker inside Docker.
|
||||||
additionalBuildArgs '--build-arg DOCKER_GID=$(stat -c %g /var/run/docker.sock) --build-arg JENKINS_UID=$(id -u jenkins) --build-arg JENKINS_GID=$(id -g jenkins)'
|
additionalBuildArgs '--build-arg DOCKER_GID=$(stat -c %g /var/run/docker.sock) --build-arg JENKINS_UID=$(id -u jenkins) --build-arg JENKINS_GID=$(id -g jenkins)'
|
||||||
args '-v /var/run/docker.sock:/var/run/docker.sock --group-add docker'
|
args '-v /var/run/docker.sock:/var/run/docker.sock --group-add docker'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
HOME = "."
|
// Set HOME to the workspace for the serverless-python-requirements plugin.
|
||||||
|
// The plugin uses HOME for its default cache location, which needs to be
|
||||||
|
// mounted in the separate Python build container. This needs to be an absolute
|
||||||
|
// path that also exists on the host since we're mounting the Docker socket.
|
||||||
|
HOME = "${env.WORKSPACE}"
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
ansiColor('xterm')
|
ansiColor('xterm')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue