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

jenkins job names with spaces in them are failing to publish to artifactory (url 'illegal char in path' failure)

XMLWordPrintable

      run a jenkins build that publishes to artifactory.
      job name contains a whitespace in it (aka a job named "my job"

       

      run the build 

       

      expected: 

      job succeed and built artifacts are published to artifactory

      actual: 
      jenkins job fails with java.net.URISyntaxException: Illegal character in path where the index of the illegal character is the 

      in my case normal named artifacts seem to publish ok but odd ones that are in my target directory are getting handled successfully

      i.e.
      [error] java.net.URISyntaxException: Illegal character in path at index 180:
      http://mybox/artifactory/libs-snapshot-local/myco/myjar/1.0-SNAPSHOT/myjar-SNAPSHOT%20-/home/ec2-user/workspace/my job/target/myjar-assembly-1.0-SNAPSHOT.jar.jar

      jenkins version:  2.462.3

      artifactory plugin: 4.0.8

            eyalbe Eyal Ben Moshe
            normana400 Andrew Norman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: