The specified user settings file does not exist: /tmp/osx-slave-1/workspace/Folder

Jenkins JIRA | Allan BURDAJEWICZ | 3 months ago
  1. 0

    [JIRA] (JENKINS-36678) Configuration File Provider fails when inside Folder named with Spaces

    Google Groups | 3 months ago | (JIRA) The specified user settings file does not exist: /tmp/osx-slave-1/workspace/Folder
  2. 0

    h3. Issue I have a Folder "Folder Test". Inside that folder I have a Pipeline job. I am using the config file provider to pass on maven settings to to my maven command: {code} sh "${tool 'mvn'}/bin/mvn clean install --settings ${env.GLOBAL_SETTINGS}" {code} I use the *Variable* option to pass them as Environment Variable. My build fails as it cannot find the file provided. The location of the settings file is truncated: {code} [ERROR] Error executing Maven. The specified user settings file does not exist: /tmp/osx-slave-1/workspace/Folder at org.apache.maven.cli.configuration.SettingsXmlConfigurationProcessor.process( at org.apache.maven.cli.MavenCli.configure( at org.apache.maven.cli.MavenCli.doMain( at org.apache.maven.cli.MavenCli.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced( at org.codehaus.plexus.classworlds.launcher.Launcher.launch( at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode( at org.codehaus.plexus.classworlds.launcher.Launcher.main( {code} h3. More Information In the console logs, we can see that the space is encoded with *%20*. However when I echo the value of my environment variable, I can see it contains the space: {code} [Pipeline] wrap provisoning config files... copy managed file [MyGlobalSettings] to file:/tmp/osx-slave-1/workspace/Folder%20Test/test-bitbucket-team-project/test-space/master@tmp/config1407003690735796100tmp [Pipeline] { [Pipeline] sh [master] Running shell script + echo /tmp/osx-slave-1/workspace/Folder Test/test-bitbucket-team-project/test-space/master@tmp/config1407003690735796100tmp /tmp/osx-slave-1/workspace/Folder Test/test-bitbucket-team-project/test-space/master@tmp/config1407003690735796100tmp [Pipeline] tool [Pipeline] sh [master] Running shell script + /usr/local/Cellar/maven/3.3.9/libexec/bin/mvn clean install -X -Dmaven.test.skip=true --settings /tmp/osx-slave-1/workspace/Folder Test/test-bitbucket-team-project/test-space/master@tmp/config1407003690735796100tmp {code} I reproduce with Pipeline and a Freestyle job as well: {code} [...] copy managed file [MyGlobalSettings] to file:/tmp/je-1-home/workspace/Folder%20Test/test-junit@tmp/config297328061101523050tmp [test-junit] $ mvn -Dmaven.test.failure.ignore=true clean install --settings /tmp/je-1-home/workspace/Folder Test/test-junit@tmp/config297328061101523050tmp [ERROR] Error executing Maven. [ERROR] The specified user settings file does not exist: /tmp/je-1-home/workspace/Folder [...] {code} h3. How to Reproduce * Create a global maven config file `global-settings` * Create a pipeline to run a Maven project with the following Jenkinsfile: {code} node { stage 'Checkout' checkout scm stage 'Build Maven' wrap([$class: 'ConfigFileBuildWrapper', managedFiles: [[fileId: 'global-settings', targetLocation: '', variable: 'GLOBAL_SETTINGS']]]) { sh "echo {env.GLOBAL_SETTINGS}" sh "${tool 'mvn'}/bin/mvn clean install --settings ${env.GLOBAL_SETTINGS}" } } {code}

    Jenkins JIRA | 3 months ago | Allan BURDAJEWICZ The specified user settings file does not exist: /tmp/osx-slave-1/workspace/Folder
  3. 0

    FileNotFoundException when using comment file path

    GitHub | 5 months ago | hidroh File '/var/slave/workspace/job/lint-results.txt' does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mounting the DEV@cloud Private WebDav Repository fails

    Stack Overflow | 3 years ago | Laures
  6. 0

    [MapReduce-dev] Hadoop-Mapreduce-trunk - Build # 663 - Still Failing - Grokbase | 12 months ago File /grid/0/hudson/hudson-slave/workspace/Hadoop-Mapreduce-trunk/trunk/build/test/data/destdat/8454268664149189958 does not exist.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis


      The specified user settings file does not exist: /tmp/osx-slave-1/workspace/Folder

      at org.apache.maven.cli.configuration.SettingsXmlConfigurationProcessor.process()
    2. org.apache.maven
      1. org.apache.maven.cli.configuration.SettingsXmlConfigurationProcessor.process(
      1 frame
    3. M3 Interceptor
      1. org.apache.maven.cli.MavenCli.configure(
      2. org.apache.maven.cli.MavenCli.doMain(
      3. org.apache.maven.cli.MavenCli.main(
      3 frames
    4. Java RT
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(
      4. java.lang.reflect.Method.invoke(
      4 frames
    5. Plexus
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(
      4 frames