-
Improvement
-
Resolution: Unresolved
-
Major
-
Jenkins 2.319.3
Pipeline: Groovy plugin 2656.vf7a_e7b_75a_457
With this update, workspace subfolders are created with a 64-character randomized name. This can result in path length limit violations in established Jenkins pipeline projects on a Windows system, which has a default max path of 260 characters. The code generating this long folder name appears to be from commit SECURITY-2463/SECURITY-2595. It looks like the supplied length integer of '32' is resulting in a a 64-character folder name. Can the length integer be reduced to '8' or '16' for better compatibility with Windows systems? The same code was introduced in the Pipeline: Shared Groovy Libraries and Pipeline: Multibranch plugins as well.
- relates to
-
JENKINS-2111 removing a job (including multibranch/org folder branches/repos) does not remove the workspace
-
- Resolved
-
[JENKINS-67836] Pipeline: Groovy Plugin [SECURITY-2463] excessive path length
Description |
Original:
With this update, workspace subfolders are created with a 64-character randomized name. This can result in path length limit violations in established Jenkins pipeline projects on a Windows system, which has a default max path of 260 characters. The code generating this long folder name appears to be from commit [[SECURITY-2463][SECURITY-2595]|[https://github.com/jenkinsci/workflow-cps-plugin/commit/f7ae7b75a457976853539bff1db52373b85fdb85#diff-751ef0b8272fefc4b69f6302b381e99ddc17417176a159adaf9e98e5d83566d4R73].] It looks like the supplied length integer of '32' is resulting in a a 64-character folder name. Can the length integer be reduced to '8' or '16' for better compatibility with Windows systems? The same code was introduced in the [Pipeline: Shared Groovy Libraries|https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365#diff-eaa8a410be0be48d82766e1847edc6c3f7fec81bd6446edeb4ce7de98a6bd74dR40] and [Pipeline: Multibranch|https://github.com/jenkinsci/workflow-multibranch-plugin/commit/71c3f0a6ccdb2ba43f43686826b0d62160df85e8#diff-14ae4841ae3d878106476d5dcb1c56e8b344ddf1bfbaeef73fc707f2354e0304R76] plugins as well.
|
New:
With this update, workspace subfolders are created with a 64-character randomized name. This can result in path length limit violations in established Jenkins pipeline projects on a Windows system, which has a default max path of 260 characters. The code generating this long folder name appears to be from commit [[SECURITY-2463][SECURITY-2595]|https://github.com/jenkinsci/workflow-cps-plugin/commit/f7ae7b75a457976853539bff1db52373b85fdb85#diff-751ef0b8272fefc4b69f6302b381e99ddc17417176a159adaf9e98e5d83566d4R73]. It looks like the supplied length integer of '32' is resulting in a a 64-character folder name. Can the length integer be reduced to '8' or '16' for better compatibility with Windows systems? The same code was introduced in the [Pipeline: Shared Groovy Libraries|https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365#diff-eaa8a410be0be48d82766e1847edc6c3f7fec81bd6446edeb4ce7de98a6bd74dR40] and [Pipeline: Multibranch|https://github.com/jenkinsci/workflow-multibranch-plugin/commit/71c3f0a6ccdb2ba43f43686826b0d62160df85e8#diff-14ae4841ae3d878106476d5dcb1c56e8b344ddf1bfbaeef73fc707f2354e0304R76] plugins as well.
|
Description |
Original:
With this update, workspace subfolders are created with a 64-character randomized name. This can result in path length limit violations in established Jenkins pipeline projects on a Windows system, which has a default max path of 260 characters. The code generating this long folder name appears to be from commit [[SECURITY-2463][SECURITY-2595]|https://github.com/jenkinsci/workflow-cps-plugin/commit/f7ae7b75a457976853539bff1db52373b85fdb85#diff-751ef0b8272fefc4b69f6302b381e99ddc17417176a159adaf9e98e5d83566d4R73]. It looks like the supplied length integer of '32' is resulting in a a 64-character folder name. Can the length integer be reduced to '8' or '16' for better compatibility with Windows systems? The same code was introduced in the [Pipeline: Shared Groovy Libraries|https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365#diff-eaa8a410be0be48d82766e1847edc6c3f7fec81bd6446edeb4ce7de98a6bd74dR40] and [Pipeline: Multibranch|https://github.com/jenkinsci/workflow-multibranch-plugin/commit/71c3f0a6ccdb2ba43f43686826b0d62160df85e8#diff-14ae4841ae3d878106476d5dcb1c56e8b344ddf1bfbaeef73fc707f2354e0304R76] plugins as well.
|
New:
With this update, workspace subfolders are created with a 64-character randomized name. This can result in path length limit violations in established Jenkins pipeline projects on a Windows system, which has a default max path of 260 characters. The code generating this long folder name appears to be from commit [SECURITY-2463/SECURITY-2595|https://github.com/jenkinsci/workflow-cps-plugin/commit/f7ae7b75a457976853539bff1db52373b85fdb85#diff-751ef0b8272fefc4b69f6302b381e99ddc17417176a159adaf9e98e5d83566d4R73]. It looks like the supplied length integer of '32' is resulting in a a 64-character folder name. Can the length integer be reduced to '8' or '16' for better compatibility with Windows systems? The same code was introduced in the [Pipeline: Shared Groovy Libraries|https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365#diff-eaa8a410be0be48d82766e1847edc6c3f7fec81bd6446edeb4ce7de98a6bd74dR40] and [Pipeline: Multibranch|https://github.com/jenkinsci/workflow-multibranch-plugin/commit/71c3f0a6ccdb2ba43f43686826b0d62160df85e8#diff-14ae4841ae3d878106476d5dcb1c56e8b344ddf1bfbaeef73fc707f2354e0304R76] plugins as well.
|
Issue Type | Original: New Feature [ 2 ] | New: Improvement [ 4 ] |
Link |
New:
This issue relates to |
It seems CpsScmFlowDefinition does not create this 64-character subfolder if it can use lightweight checkout instead. Which it probably cannot if the SCM needs to merge a pull request.