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

svn-tag plugin does not support environment variables from promoted build

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins: 1.450
      Jenkins promoted builds plugin: 2.6.1
      Jenkins Subversion Plugin: 1.34
      Jenkins Subversion Tagging Plugin: 1.16

    • Similar Issues:

      Description

      Parameter myversion2 (see attachment) is not useable in svn tag plugin. The tag gets names as null.

        Attachments

          Activity

          Hide
          austriancoder Christian Gmeiner added a comment -

          Hi everyone. I need this bug/feature so much that I'm willing to pay 40.00 bucks for it.
          This offer is registered at FreedomSponsors (http://www.freedomsponsors.org/core/issue/39/svn-tag-plugin-does-not-support-environment-variables-from-promoted-build).
          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!

          Show
          austriancoder Christian Gmeiner added a comment - Hi everyone. I need this bug/feature so much that I'm willing to pay 40.00 bucks for it. This offer is registered at FreedomSponsors ( http://www.freedomsponsors.org/core/issue/39/svn-tag-plugin-does-not-support-environment-variables-from-promoted-build ). 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!
          Hide
          gardi Thomas Graziadei added a comment -

          The problem is that the svn-tag plugin takes the environment variables from the ancestor build and not the actual build that was triggered.

          The issue can be solved if the environment variables from the actual build are put in the var map and then the ancestor build adds/overrides its environment variables to the map. That would not change the original behaviour of the svn-tag plugin but add the wanted functionality for it to work well together with the promoted build plugin.

          The bugfix would be in the SvnTagPlugin.java in line 100.

          <replace>
          EnvVars envVars = rootBuild.getEnvironment(buildListener);

          <with>
          EnvVars envVars = abstractBuild.getEnvironment(buildListener);
          EnvVars rootVars = rootBuild.getEnvironment(buildListener);
          envVars.putAll(rootVars);

          Show
          gardi Thomas Graziadei added a comment - The problem is that the svn-tag plugin takes the environment variables from the ancestor build and not the actual build that was triggered. The issue can be solved if the environment variables from the actual build are put in the var map and then the ancestor build adds/overrides its environment variables to the map. That would not change the original behaviour of the svn-tag plugin but add the wanted functionality for it to work well together with the promoted build plugin. The bugfix would be in the SvnTagPlugin.java in line 100. <replace> EnvVars envVars = rootBuild.getEnvironment(buildListener); <with> EnvVars envVars = abstractBuild.getEnvironment(buildListener); EnvVars rootVars = rootBuild.getEnvironment(buildListener); envVars.putAll(rootVars);
          Hide
          austriancoder Christian Gmeiner added a comment -

          This issue still exists with the following versions:

          • Jenkins 1.609.1
          • Jenkins Subversion Tagging Plugin 1.18
          • Jenkins Subversion Plugin 2.5.1
          • Jenkins promoted builds plugin 2.21
          Show
          austriancoder Christian Gmeiner added a comment - This issue still exists with the following versions: Jenkins 1.609.1 Jenkins Subversion Tagging Plugin 1.18 Jenkins Subversion Plugin 2.5.1 Jenkins promoted builds plugin 2.21
          Hide
          k2nakamura k2nakamura added a comment -

          I no longer support this plugin. Please find someone who can add the feature.

          Show
          k2nakamura k2nakamura added a comment - I no longer support this plugin. Please find someone who can add the feature.

            People

            • Assignee:
              Unassigned
              Reporter:
              austriancoder Christian Gmeiner
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: