<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">
<f:entry title="${%Character Set}" field="charset">
<f:select default="none"/>
</f:entry>
<f:entry title="${%Workspace name }" field="name">
<f:textbox id="id.name" onfocus="updateWorkspaceSpec()" onkeyup="updateWorkspaceSpec()" />
</f:entry>
<f:entry>
<f:property field="spec" />
</f:entry>
<script>
function updateWorkspaceSpec() {
var inst = <st:bind value="${instance}"/>;
var name = document.getElementById("id.name").value;
inst.getSpecJSON(name, function(t) {
var json = t.responseObject();
document.getElementById("id.allwrite").checked = json.options.allwrite;
document.getElementById("id.clobber").checked = json.options.clobber;
document.getElementById("id.compress").checked = json.options.compress;
document.getElementById("id.locked").checked = json.options.locked;
document.getElementById("id.modtime").checked = json.options.modtime;
document.getElementById("id.rmdir").checked = json.options.rmdir;
document.getElementById("id.stream").value = json.stream;
document.getElementById("id.line").value = json.line;
document.getElementById("id.view").value = json.view;
});
}
</script>
</j:jelly>
# |
Change |
User |
Description |
Committed |
|
#6
|
9672 |
paul_allen |
Refactor name from 'p4_client' to 'p4'. |
|
|
#5
|
8769 |
paul_allen |
Update to charset option for workspaces to use a drop-down select with a default of 'none'. |
|
|
#4
|
8756 |
paul_allen |
Added Stream field to Manual Workspace config. |
|
|
#3
|
8755 |
paul_allen |
JavaScript automation for populating Client workspace spec in Manual mode. |
|
|
#2
|
8749 |
paul_allen |
Split off Worksapce Spec from Manual Workspace configuration into a Property Jelly item. Plan to autoload values based on selected client. |
|
|
#1
|
8697 |
paul_allen |
Added Manual workspace option for user to define Options/LineEnd/View etc... in Jenkins. |
|
|