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

Script error after upgrading config-file-provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins:2.89
      config-file-provider:2.17
      job-dsl-plugin:1.66

      I'm getting an error when I'm executing my dsl scripts after upgrading config-file-provider to version 2.17.

      Steps to reproduce this error:

      1. Create a Freestyle project
      2. Add a Build Step: Process Job DSLs
      3. Use the provided DSL Script (dummy for this example):
        configFiles {
          customConfig {
            id('123456789')
            name('Old_Config_File')
            comment('This is a comment.')
            content('My Content')
            providerId('')
          }
        }
        

      After save and build the job, I get this error:

      Processing provided DSL script
      ERROR: Found multiple extensions which provide method customConfig with arguments [script$_run_closure1$_closure2@830385b]: [[org.jenkinsci.plugins.configfiles.custom.CustomConfig, org.jenkinsci.plugins.configfiles.custom.CustomConfig]]
      Finished: FAILURE
      

      If I use config-file-provider:2.16.4, this job finish SUCCESS

      Could it be a regression or do I have to make changes in my script?

            fcojfernandez Francisco Fernández
            fcojfernandez Francisco Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: