jenkinsci / docker-swarm-plugin

Jenkins plugin which allows to add a Docker Swarm as a cloud agent provider
https://plugins.jenkins.io/docker-swarm/
MIT License
55 stars 49 forks source link

Volume name of cache folder is invalid (due to » character) #33

Open vsfalexanderpilch opened 5 years ago

vsfalexanderpilch commented 5 years ago

We do use project folders in jenkins and are also using the plugin in a pipeline build. As a result, the whole path is used as the name of the docker volumes, e.g. "project_name»ci-build»branch" The error states, that there're invalid characters in the volume name (the » character of the folder structure is included in the name of the volume).

We've only tested it with cache folders, but there might be more places affected by this. This bug was encountered in 1.6,

Here's the snippet of docker service inspect:

"Mounts": [ { "Type": "volume", "Source": "part_ofproject»_cibuild»swarm#40-ild_swarm40", "Target": "/home/node/.m2", "VolumeOptions": { "DriverConfig": {} } } ],