How to manage a workspace Jenkins begins to build?

I have one Jenkins master node and 2 Jenkins subordinate nodes. All my work takes place in a subordinate node. When I set up my subordinates, I set Remote root directoryhow /data/home/jenkins/jenkins-slave. In addition, I provide a custom workspace as DEVELOP_BRANCHon the job configuration page of the corresponding job.

However, at the beginning of the work, I get the following log information:

Building remotely on linux in workspace /data/home/jenkins/jenkins-slave/workspace/DEVELOP_BRANCH

I want to start assembling at this place.

/data/home/jenkins/jenkins-slave/DEVELOP_BRANCH

Why does an additional workspace directory appear in the picture? How to remove it? I do not have access to the Jenkins node master. So, if there is a workaround that can fit my requirements, that would be awesome.

Note. In node, I refer to a Linux computer with redHat distribution.

+4
source share
1 answer

In the project configuration, in the Advanced project settings section, you can check Use a custom workspace and put the path there.

If you put an absolute path , it will be used without any additional workspace / directory. (at least what I see on a Windows server.)

+5
source

Source: https://habr.com/ru/post/1648994/


All Articles