Use PWD as the home directory by default
This should avoid issues like UID 1000 (Jenkins agent) trying to write to /.npm in the container which would be owned as root
This commit is contained in:
parent
2c4f0aa986
commit
eefce031fe
|
@ -8,6 +8,10 @@ pipeline {
|
|||
buildDiscarder(logRotator(numToKeepStr: '5'))
|
||||
}
|
||||
|
||||
environment {
|
||||
HOME = '$PWD'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
|
|
Loading…
Reference in New Issue