Search code examples
javajenkinsbuildjenkins-pipelinehudson

Jenkins workspace management


Jenkins uses "@" sign when creating new jenkins-pipeline workspace folders. The reason why these "@" are used is unclear for me, but I also don't need to understand how Jenkins works internally (although interesting...).

However, these "@" are causing us troubles because we are running bash commands from these workspace directories, and "@" is unfortunately not supported by some tools.

My question: is it possible to configure Jenkins so that it uses another sign than "@" for the workspace's path directories?

================

Ok, some additional research seem to mention than these "@" are used when concurrent build are possible. However, in our case, we explicitely checked the box mentioning that "no concurrent build are allowed".

(Sure we could take content of workspaces and copy them somwhere else in order to start our commands... but this can't be changed that easily ...)


Solution

  • Found it !!

    One can start Jenkins using the following parameter: -Dhudson.slaves.WorkspaceList=_

    See also here for a list of possible parameter: https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties