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

Allow overriding build parameters in release build

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: release-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.408, Release plugin 2.1
    • Similar Issues:

      Description

      When building a release build of a parameterized job, the build parameters are not included in the form - only the release parameters are. The build parameters therefore get their default values, which may not be desirable.

      It is possible to override the defaults by defining identically named release parameters. This has several drawbacks: config duplication, and confusing duplicate entries for the same name (with different values) in the "Parameters" list for the completed build.

      I think build parameters should also be configurable when triggering a release build.

        Attachments

          Activity

          Hide
          rseguy Romain Seguy added a comment -

          I've been able to implement the feature. I just need to further test it to be sure there are no side-effects. It should be done next week hopefully.

          Show
          rseguy Romain Seguy added a comment - I've been able to implement the feature. I just need to further test it to be sure there are no side-effects. It should be done next week hopefully.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: rseguy
          Path:
          src/main/java/hudson/plugins/release/ReleaseWrapper.java
          src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly
          src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties
          src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly
          src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties
          src/main/webapp/help-overrideBuildParameters.html
          http://jenkins-ci.org/commit/release-plugin/beb0002ac105e51c02872ceedee55d04dcfc38c1
          Log:
          [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rseguy Path: src/main/java/hudson/plugins/release/ReleaseWrapper.java src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties src/main/webapp/help-overrideBuildParameters.html http://jenkins-ci.org/commit/release-plugin/beb0002ac105e51c02872ceedee55d04dcfc38c1 Log: [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: rseguy
          Path:
          src/main/java/hudson/plugins/release/ReleaseWrapper.java
          http://jenkins-ci.org/commit/release-plugin/bdc0080efc8ea20579bef0ce236be0deec09f5d7
          Log:
          [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rseguy Path: src/main/java/hudson/plugins/release/ReleaseWrapper.java http://jenkins-ci.org/commit/release-plugin/bdc0080efc8ea20579bef0ce236be0deec09f5d7 Log: [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Peter Hayes
          Path:
          src/main/java/hudson/plugins/release/ReleaseWrapper.java
          src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly
          src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties
          src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly
          src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties
          src/main/webapp/help-overrideBuildParameters.html
          http://jenkins-ci.org/commit/release-plugin/48576c5e75eb9cf816cafe13c0d951acb2db1f27
          Log:
          Merge pull request #2 from rseguy/master

          Implemented JENKINS-9705: Allow overriding build parameters in release build

          Compare: https://github.com/jenkinsci/release-plugin/compare/1f54949...48576c5

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Peter Hayes Path: src/main/java/hudson/plugins/release/ReleaseWrapper.java src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties src/main/webapp/help-overrideBuildParameters.html http://jenkins-ci.org/commit/release-plugin/48576c5e75eb9cf816cafe13c0d951acb2db1f27 Log: Merge pull request #2 from rseguy/master Implemented JENKINS-9705 : Allow overriding build parameters in release build Compare: https://github.com/jenkinsci/release-plugin/compare/1f54949...48576c5
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_release #34
          [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build
          [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build

          rseguy :
          Files :

          • src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly
          • src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties
          • src/main/java/hudson/plugins/release/ReleaseWrapper.java
          • src/main/webapp/help-overrideBuildParameters.html
          • src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly
          • src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties

          rseguy :
          Files :

          • src/main/java/hudson/plugins/release/ReleaseWrapper.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_release #34 [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build [FIXED JENKINS-9705] Added a new "Override build parameters" option when triggering a new release build rseguy : Files : src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index_fr.properties src/main/java/hudson/plugins/release/ReleaseWrapper.java src/main/webapp/help-overrideBuildParameters.html src/main/resources/hudson/plugins/release/ReleaseWrapper/config.jelly src/main/resources/hudson/plugins/release/ReleaseWrapper/config_fr.properties rseguy : Files : src/main/java/hudson/plugins/release/ReleaseWrapper.java

            People

            • Assignee:
              rseguy Romain Seguy
              Reporter:
              mbetter Marcus Better
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: