Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38506

Invalid workspace path for pipeline jobs on jenkins master

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • pipeline
    • Jenkins 2.7.3
      Pipeline 2.4
      Multibranch 2.9

      There seems to be a recent change in strategy on how folders are organized in workspace folder on Jenkins master for first stage SCM checkouts from multibranch jobs. Previously they used to be nested folders now they are not.

      My problem is, there seems to be a size limit on the workspace subfolder name and you are cropping the git repository name, which is causing some maintenance problems. e.g.

      A pull request to a Git repository name 'navigation extension' is cropped to some thing like this:

      avigation-extension_PR-2464-KJBGB3QGPGBXAOYPEHJ33MLLSHZ5D7E5YXNLYLFVQGYPXWOKA4CQ@script
      

      Another one 'aws-infrastructure-data' is something like:

      -infrastructure-data_master-O7PVEBG7YU24BDNRZTSG3VBPTCGPVWE5PF2OZ35TBWNASAJB2OOA@script
      

      so naturally you cannot do something like:

      $ cd -infrastructure-data_master-O7PVEBG7YU24BDNRZTSG3VBPTCGPVWE5PF2OZ35TBWNASAJB2OOA@script
      -bash: cd: -i: invalid option
      cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
      

      Secondly, the path seems to be too long which can also create some problems.

            Unassigned Unassigned
            nikk699 Faheem Nadeem
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: