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

Script error after upgrading config-file-provider

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • Jenkins:2.89
      config-file-provider:2.17
      job-dsl-plugin:1.66

    Description

      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?

      Attachments

        Issue Links

          Activity

            fcojfernandez Francisco Fernández created issue -
            fcojfernandez Francisco Fernández made changes -
            Field Original Value New Value
            Assignee Dominik Bartholdi [ domi ] Francisco Fernández [ fcojfernandez ]
            fcojfernandez Francisco Fernández made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            fcojfernandez Francisco Fernández made changes -
            Remote Link This issue links to "PR-48 (Web Link)" [ 19924 ]
            fcojfernandez Francisco Fernández made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            imod Dominik Bartholdi made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal CLTS-2671 (Web Link)" [ 20576 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: