[JIRA] Created: (HUDSON-5094) Release template string does not expand multiple variables

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list
Release template string does not expand multiple variables
----------------------------------------------------------

                 Key: HUDSON-5094
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
             Project: Hudson
          Issue Type: Bug
          Components: release
    Affects Versions: current
         Environment: Hudson 1.334, release plugin 1.9
            Reporter: dbacher1
            Assignee: petehayes


I configured a Release build with two parameters and a release template string that contained both parameter strings.

The resulting Release string for the build only expanded the first parameter.

This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134108#action_134108 ]

dbacher1 commented on HUDSON-5094:
----------------------------------

To reproduce, create a build that contains:

* 2 build parameters (A and B),
* a release build with the same two parameter names as release parameters,
* a release template string that expands both parameters,
* a build step that prints the parameters.

The build step prints the non-empty values, but the release string does not expand both parameters.

> Release template string does not expand multiple variables
> ----------------------------------------------------------
>
>                 Key: HUDSON-5094
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
>             Project: Hudson
>          Issue Type: Bug
>          Components: release
>    Affects Versions: current
>         Environment: Hudson 1.334, release plugin 1.9
>            Reporter: dbacher1
>            Assignee: petehayes
>
> I configured a Release build with two parameters and a release template string that contained both parameter strings.
> The resulting Release string for the build only expanded the first parameter.
> This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140080#action_140080 ]

buongiorno commented on HUDSON-5094:
------------------------------------

I confirm that that release template string takes the parameters value from the build and not from the release if the same parameter name is defined both on "build" and "release".

> Release template string does not expand multiple variables
> ----------------------------------------------------------
>
>                 Key: HUDSON-5094
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
>             Project: Hudson
>          Issue Type: Bug
>          Components: release
>    Affects Versions: current
>         Environment: Hudson 1.334, release plugin 1.9
>            Reporter: dbacher1
>            Assignee: petehayes
>
> I configured a Release build with two parameters and a release template string that contained both parameter strings.
> The resulting Release string for the build only expanded the first parameter.
> This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Work started: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HUDSON-5094 started by petehayes.

> Release template string does not expand multiple variables
> ----------------------------------------------------------
>
>                 Key: HUDSON-5094
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
>             Project: Hudson
>          Issue Type: Bug
>          Components: release
>    Affects Versions: current
>         Environment: Hudson 1.334, release plugin 1.9
>            Reporter: dbacher1
>            Assignee: petehayes
>
> I configured a Release build with two parameters and a release template string that contained both parameter strings.
> The resulting Release string for the build only expanded the first parameter.
> This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

petehayes resolved HUDSON-5094.
-------------------------------

    Resolution: Fixed

> Release template string does not expand multiple variables
> ----------------------------------------------------------
>
>                 Key: HUDSON-5094
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
>             Project: Hudson
>          Issue Type: Bug
>          Components: release
>    Affects Versions: current
>         Environment: Hudson 1.334, release plugin 1.9
>            Reporter: dbacher1
>            Assignee: petehayes
>
> I configured a Release build with two parameters and a release template string that contained both parameter strings.
> The resulting Release string for the build only expanded the first parameter.
> This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5094) Release template string does not expand multiple variables

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140362#action_140362 ]

scm_issue_link commented on HUDSON-5094:
----------------------------------------

Code changed in hudson
User: : petehayes
Path:
 trunk/hudson/plugins/release/src/main/java/hudson/plugins/release/ReleaseWrapper.java
http://hudson-ci.org/commit/33143
Log:
HUDSON-5094 Reversed order of parameters in resolver used when resolving the release version template


> Release template string does not expand multiple variables
> ----------------------------------------------------------
>
>                 Key: HUDSON-5094
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5094
>             Project: Hudson
>          Issue Type: Bug
>          Components: release
>    Affects Versions: current
>         Environment: Hudson 1.334, release plugin 1.9
>            Reporter: dbacher1
>            Assignee: petehayes
>
> I configured a Release build with two parameters and a release template string that contained both parameter strings.
> The resulting Release string for the build only expanded the first parameter.
> This seems to be a side effect of not being able to set ordinary build parameters in Release builds. If a Release parameter (but not the first Release parameter?) has the same name as a build parameter, then the Release string is expanded with the empty value from the build parameter.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]