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

Job DSL Custom config file with name not found

XMLWordPrintable

      After upgrading to latest Job DSL v1.55 and Config File Provider v2.15.1, getting the following error:

      Input Job DSL:

      customConfigFile('dslConfigFile') {
        content('test file')
      }
      
      job('test-job') {
        wrappers {
          configFiles {
            file('dslConfigFile') {
              targetLocation('/root/configFile')
            }
          }
        }
        steps {
          shell('true')
        }
      }
      

      Output:

      ERROR: (script, line 8) Custom config file with name 'dslConfigFile' not found
      

      Alternatives Tried:

      • Read existing config file with name
      • Provide config file to seed job workspace, and use the above customConfigFile with readFileFormWorkspace

      None of the above works. Please let me know if I'm doing something wrong...

            daspilker Daniel Spilker
            fm4zyqnfbbfpim Subhas Dandapani
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: