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

Workflow integration for Config File Provider

    XMLWordPrintable

Details

    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

            teilo James Nord added a comment -

            jglick Next LTS has been cut

            teilo James Nord added a comment - jglick Next LTS has been cut

            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.

            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.

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

            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.

            released with 2.9.2

            domi Dominik Bartholdi added a comment - released with 2.9.2
            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'
                    }
            
            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

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

              Dates

                Created:
                Updated:
                Resolved: