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

Workflow integration for Config File Provider

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be useful to be able to supply defined configuration files to workflows.

      Possibly it would suffice to make ConfigFileBuildStep be a SimpleBuildStep. CleanTempFilesRunListener cannot be made to work on a flow build (even if you accept any Run there is no guarantee the slave is still online at the end of the flow), so if cleaning files is important then this would better be a block-scoped custom Step.

      Not sure what ConfigFileBuildWrapper is for as distinct from the build step, but probably it would be covered better by a block-scoped step.

        Attachments

          Issue Links

            Activity

            Hide
            teilo James Nord added a comment -

            Jesse Glick Next LTS has been cut

            Show
            teilo James Nord added a comment - Jesse Glick Next LTS has been cut
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/configfiles/builder/ConfigFileBuildStep.java
            src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
            src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java
            http://jenkins-ci.org/commit/config-file-provider-plugin/bcae9812c08295371a9da9163746f1468b8a744b
            Log:
            JENKINS-26339 SimpleBuildWrapper support.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/org/jenkinsci/plugins/configfiles/builder/ConfigFileBuildStep.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ManagedFileUtil.java http://jenkins-ci.org/commit/config-file-provider-plugin/bcae9812c08295371a9da9163746f1468b8a744b Log: JENKINS-26339 SimpleBuildWrapper support.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/06d82c91d88fb6a83b99c7354f432bd298297ffa
            Log:
            JENKINS-26339 Noting.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/06d82c91d88fb6a83b99c7354f432bd298297ffa Log: JENKINS-26339 Noting.
            Hide
            domi Dominik Bartholdi added a comment -

            released with 2.9.2

            Show
            domi Dominik Bartholdi added a comment - released with 2.9.2
            Hide
            larsmeynberg Lars Meynberg added a comment -

            Where can I find a config-file-provider example? I've used the Common Wrap step, but I would like to used the more streamlined DSL step.

             try {
                        wrap([$class: 'ConfigFileBuildWrapper', managedFiles: [[fileId: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig1429696583138', targetLocation: 'settings.xml', variable: '']]]) {
                            sh 'mvn -s settings.xml clean install -Dmaven.test.failure.ignore'
                        }
            
                    } finally {
                        sh 'rm -f settings.xml'
                    }
            
            Show
            larsmeynberg Lars Meynberg added a comment - Where can I find a config-file-provider example? I've used the Common Wrap step, but I would like to used the more streamlined DSL step. try { wrap([$class: 'ConfigFileBuildWrapper' , managedFiles: [[fileId: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig1429696583138' , targetLocation: 'settings.xml' , variable: '']]]) { sh 'mvn -s settings.xml clean install -Dmaven.test.failure.ignore' } } finally { sh 'rm -f settings.xml' }

              People

              • Assignee:
                domi Dominik Bartholdi
                Reporter:
                jglick Jesse Glick
              • Votes:
                5 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: