Skip to content
Permalink
Browse files

JENKINS-39366

  • Loading branch information...
klimas7 committed Oct 30, 2016
1 parent b33df5e commit b05a018ac171d5e5f6287a69f41937b77443862a
@@ -70,6 +70,12 @@
<artifactId>jquery</artifactId>
<version>1.11.2-0</version>
</dependency>
<dependency>
<groupId>com.sonyericsson.hudson.plugins.rebuild</groupId>
<artifactId>rebuild</artifactId>
<version>1.25</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
@@ -0,0 +1,15 @@
package net.uaznia.lukanus.hudson.plugins.gitparameter;

import com.sonyericsson.rebuild.RebuildParameterPage;
import com.sonyericsson.rebuild.RebuildParameterProvider;
import hudson.Extension;
import hudson.model.ParameterValue;

@Extension(optional = true)
public class GitParameterRebuild extends RebuildParameterProvider {

@Override
public RebuildParameterPage getRebuildPage(ParameterValue parameterValue) {
return new RebuildParameterPage(GitParameterValue.class,"value.jelly");
}
}
@@ -1,29 +1,29 @@
<?jelly escape-by-default='true'?>
<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">
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<st:adjunct includes="net.uaznia.lukanus.hudson.plugins.gitparameter.script"/>
<j:set var="divId" value="${it.divUUID}" scope="parent"/>
<f:entry title="${it.name}" description="${it.description}">
<div name="parameter" description="${it.description}" id="${divId}">
<st:adjunct includes="lib.form.select.select"/>
<input type="hidden" name="name" value="${it.name}"/>
<select name="value" class="select" size="5" style="min-width: 200px" id="select"
fillUrl="${h.getCurrentDescriptorByNameUrl()}/${it.descriptor.descriptorUrl}/fillValueItems?param=${it.name}">
<option value="">${%retrieving.references}</option>
</select>
<j:if test="${it.quickFilterEnabled}">
<input class='git_parameter_quick_filter' type='text' value='' name='quickFilter' placeholder='Filter'
style="vertical-align: top" id="filter"/>
</j:if>
<script type="text/javascript">
var parentDiv = jQuery('#${divId}');
new GitParameter.QuickFilter(parentDiv.find('.select').get(0),
parentDiv.find('.git_parameter_quick_filter').get(0),
"${it.selectedValue}", "${it.defaultValue}");
</script>
</div>
<div>${%needs.to.clone}</div>
</f:entry>
</j:jelly>
<?jelly escape-by-default='true'?>
<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">
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<st:adjunct includes="net.uaznia.lukanus.hudson.plugins.gitparameter.script"/>
<j:set var="divId" value="${it.divUUID}" scope="parent"/>
<f:entry title="${it.name}" description="${it.description}">
<div name="parameter" description="${it.description}" id="${divId}">
<st:adjunct includes="lib.form.select.select"/>
<input type="hidden" name="name" value="${it.name}"/>
<select name="value" class="select" size="5" style="min-width: 200px" id="select"
fillUrl="${h.getCurrentDescriptorByNameUrl()}/${it.descriptor.descriptorUrl}/fillValueItems?param=${it.name}">
<option value="">${%retrieving.references}</option>
</select>
<j:if test="${it.quickFilterEnabled}">
<input class='git_parameter_quick_filter' type='text' value='' name='quickFilter' placeholder='Filter'
style="vertical-align: top" id="filter"/>
</j:if>
<script type="text/javascript">
var parentDiv = jQuery('#${divId}');
new GitParameter.QuickFilter(parentDiv.find('.select').get(0),
parentDiv.find('.git_parameter_quick_filter').get(0),
"${it.selectedValue}", "${it.defaultValue}");
</script>
</div>
<div>${%needs.to.clone}</div>
</f:entry>
</j:jelly>
@@ -1,8 +1,11 @@
<?jelly escape-by-default='true'?>
<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}">
${it.value}
</f:entry>
<?jelly escape-by-default='true'?>
<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 b05a018

Please sign in to comment.
You can’t perform that action at this time.