Autogenerated generated folder too long on jenkins slave

I have Jenkins to run builds on a slave Windows.

In an older version of Jenkins (2.7, to be precise), builds worked just fine under

C:\jenkins\workspace\<repository name>\<project name>\<stage> 

However, when we updated (now using 2.19.3), the assemblies are now under

 C:\jenkins\workspace\<a concatenation of repository, project, stage and a *very* long alphanumeric string> 

This causes problems in my build, as the file paths become too long to process, and various steps are interrupted. In fact, even the default folder name is so long that the beginning of the name is truncated.

There are Linux operators under this Jenkins wizard, so I cannot perform a general change in the workspace for all agents.

How can I continue? Can I change this default folder name to something shorter?

+5
source share
1 answer

So far, our solution has been pretty hacky:

We just mapped a long base folder to a network drive (in particular:

 subst x: . x: 

and then continued from there.

+1
source

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


All Articles