Skip to content

Commit

Permalink
Fixed: JENKINS-14828 - Rebuild plugin crashes when used in conjuction…
Browse files Browse the repository at this point in the history
… with Extended Choice Parameter

Added the Jelly file that makes it possible to change the value of the parameter when rebuilding (simple string input box). Unfortunately the type of parameter is not serialized in the job, so it's hard to present a nice gui when rebuilding based on the type of extended choice parameter. We could use the current job configuration, however this might conflict with builds that ran in the past with a different configuration.
  • Loading branch information
rinokadijk committed May 19, 2013
1 parent 6678b8e commit 2102137
Showing 1 changed file with 35 additions and 0 deletions.
@@ -0,0 +1,35 @@
<!--
The MIT License
Copyright 2013 Rino Kadijk.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"
xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
<f:entry title="${it.name}" description="${it.description}">
<div name="parameter" description="${it.description}">
<input type="hidden" name="name" value="${it.name}" />
<f:textbox name="value" value="${it.value}" />
</div>
</f:entry>
</j:jelly>


0 comments on commit 2102137

Please sign in to comment.