-
Bug
-
Resolution: Fixed
-
Major
-
Amazon Linux
Jenkins 2.46.2 in docker
Latest plugins` versions: 2.5
-
-
Blue Ocean 1.1-beta4
I have two jobs: CI (multibranch pipeline job) and Deploy (pipeline job).
CI triggers Deploy via pipeline build step:
build job: 'Deploy', parameters: [ string(name: 'deployBranch', value: 'develop'), string(name: 'deployEnv', value: 'dev') ]
when
CI job is run by default using jenkins user with configured default home directory /var/jenkins_home. But triggered Deploy job is run by the same jenkins user BUT in directory /home/jenkins. Of course, there is no any workspace folder there and Deploy job fails.
When I rerun Deploy job manually it is run with correct home directory /var/jenkins_home and * successfully * deploys my artifacts.
Why is home directory changed? And how to prevent it or force the correct one?