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

Add ability to specify custom ivy settings file in global configuration for ivy job type

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • ivy-plugin
    • None

      Currently there is only one way to specify custom ivy settings for ivy job type - relative path in the job.
      In our case we have a custom ivy settings that are used by all jobs. There should be a way to specify global custom ivy settings the same way it is done for ivy build trigger.
      Side note: the field inside the ivy job for ivy settings should support both relative and absolute paths

          [JENKINS-15774] Add ability to specify custom ivy settings file in global configuration for ivy job type

          eguess74 created issue -

          eguess74 added a comment -

          Hi everyone. I need this bug/feature so much that I'm willing to pay 50.00 bucks for it.
          This offer is registered at FreedomSponsors (http://www.freedomsponsors.org/core/issue/96/add-ability-to-specify-custom-ivy-settings-file-in-global-configuration-for-ivy-job-type).
          Once you solve it (according to the acceptance criteria described there), just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too)
          I'll then check it out and will gladly pay up!

          If anyone else would like to throw in a few bucks to elevate the priority on this issue, you should check out FreedomSponsors!

          eguess74 added a comment - Hi everyone. I need this bug/feature so much that I'm willing to pay 50.00 bucks for it. This offer is registered at FreedomSponsors ( http://www.freedomsponsors.org/core/issue/96/add-ability-to-specify-custom-ivy-settings-file-in-global-configuration-for-ivy-job-type ). Once you solve it (according to the acceptance criteria described there), just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too) I'll then check it out and will gladly pay up! If anyone else would like to throw in a few bucks to elevate the priority on this issue, you should check out FreedomSponsors!

          who ever is gonna implement this, I think a good solution would be to implement this the same way as we did for maven, using the config-file-provider [1] plugin to administrate the settings file - this way a user/admin is not only able to reference a settings file, but also to change it in the browser.
          The ivy plugin could just implement a org.jenkinsci.lib.configprovider.model.Config and access it during execution. Have a look at org.jenkinsci.plugins.configfiles.xml.XmlConfig or org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig

          [1] https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin

          Dominik Bartholdi added a comment - who ever is gonna implement this, I think a good solution would be to implement this the same way as we did for maven, using the config-file-provider [1] plugin to administrate the settings file - this way a user/admin is not only able to reference a settings file, but also to change it in the browser. The ivy plugin could just implement a org.jenkinsci.lib.configprovider.model.Config and access it during execution. Have a look at org.jenkinsci.plugins.configfiles.xml.XmlConfig or org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig [1] https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin

          eguess74 added a comment -

          This offer was increased to $100.00!

          eguess74 added a comment - This offer was increased to $100.00!

          eguess74 added a comment -

          This offer was increased to $150.00!

          eguess74 added a comment - This offer was increased to $150.00!

          So you're basically asking for a custom ivy settings option for Ivy Project Configuration in the system configuration?

          Johno Crawford added a comment - So you're basically asking for a custom ivy settings option for Ivy Project Configuration in the system configuration?

          Johno Crawford added a comment - Something along the lines of this? https://github.com/jenkinsci/ivy-plugin/commit/4e03055f204801081c01a496b950f348a1279c89.patch

          Code changed in jenkins
          User: johnou
          Path:
          src/main/java/hudson/ivy/IvyModuleSet.java
          src/main/java/hudson/ivy/IvyModuleSetBuild.java
          src/main/resources/hudson/ivy/IvyModuleSet/global.jelly
          src/main/resources/hudson/ivy/IvyModuleSet/help-globalIvySettingsFile.html
          src/main/resources/hudson/ivy/IvyModuleSet/help-globalIvySettingsPropertyFiles.html
          http://jenkins-ci.org/commit/ivy-plugin/4e03055f204801081c01a496b950f348a1279c89
          Log:
          JENKINS-15774 Global custom ivy settings.

          Compare: https://github.com/jenkinsci/ivy-plugin/compare/52ae19ba6a07^...4e03055f2048

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: johnou Path: src/main/java/hudson/ivy/IvyModuleSet.java src/main/java/hudson/ivy/IvyModuleSetBuild.java src/main/resources/hudson/ivy/IvyModuleSet/global.jelly src/main/resources/hudson/ivy/IvyModuleSet/help-globalIvySettingsFile.html src/main/resources/hudson/ivy/IvyModuleSet/help-globalIvySettingsPropertyFiles.html http://jenkins-ci.org/commit/ivy-plugin/4e03055f204801081c01a496b950f348a1279c89 Log: JENKINS-15774 Global custom ivy settings. Compare: https://github.com/jenkinsci/ivy-plugin/compare/52ae19ba6a07 ^...4e03055f2048
          Johno Crawford made changes -
          Attachment New: ivy.hpi [ 23049 ]

          One thing to note in the current implementation is that the path in the global ivy settings refers to the slave environment.

          Johno Crawford added a comment - One thing to note in the current implementation is that the path in the global ivy settings refers to the slave environment.

            tbingaman Timothy Bingaman
            eguess74 eguess74
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: