Steps to reproduce
- Using a fresh instance of jenkins running inside a container from docker registry.
- Created a multi branch project via blue ocean
- updated settings. Manage jenkins > configure system > home directory > advance button > change directory to ${JENKINS_HOME}/workspace/src/${ITEM_FULLNAME} > save
- restarted jenkins via jenkins_url/restart
- triggered a build but still creates the project in ${JENKINS_HOME}/workspace/${ITEM_FULLNAME}
Any ideas what I'm missing to get my builds into the custom path? Might be a bug?
my Jenkinsfile
node {
checkout scm
withEnv(["PATH=${env.path}:/var/jenkins_home/go_install/go/bin/",
'GOPATH=/var/jenkins_home/workspace/',
'GOROOT=/var/jenkins_home/go_install/go/']) {
stage('Info') {
sh 'printenv'
}
stage('Build') {
sh 'ls'
sh 'go get .'
sh 'go build .'
sh 'make setupenv'
sh 'make'
}
stage('Test') {
sh 'which docker'
sh 'make test'
}
}
}
Thanks in advance!