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

Config Provider Files created by DSL cannot be used via Pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • job-dsl: v1.53
      config-file-provider: v2.13

      Config provider files cannot be created with a constant ID via the Job DSL. This is a problem as the Config provider Pipeline step only accepts ID's as a reference, which are dynamically generated by the Job DSL.

          configFileProvider(
              [configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
              sh 'mvn -s $MAVEN_SETTINGS clean package'
          }
      

      The Job DSL should allow specifying a custom/static ID when creating a new Config provider file (just as we can when creating Config provider files through the UI)

            daspilker Daniel Spilker
            analogj Jason Kulatunga
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: