Skip to content
Permalink
Browse files

Build flow sections created in older Jenkins versions disappeared in …

…Jenkins 2.x

[FIXED JENKINS-34961]
  • Loading branch information...
pskumar448 authored and rodrigc committed Jun 6, 2016
1 parent 89a9037 commit d3c3ca664aecfa969a6b220b6695256c8a1e770e
Showing with 11 additions and 7 deletions.
  1. +11 −7 src/main/resources/com/cloudbees/plugins/flow/BuildFlow/configure-entries.jelly
@@ -31,13 +31,17 @@
</p:config-trigger>

<f:section title="Flow">
<f:optionalBlock field="buildNeedsWorkspace" title="${%Flow run needs a workspace}"
checked="${instance.buildNeedsWorkspace}">
<f:entry field="dslFile" title="${%Read DSL from file}">
<j:getStatic var="permission" className="hudson.model.Hudson" field="RUN_SCRIPTS"/>
<f:textbox readonly="${h.hasPermission(it,permission) ? null : 'readonly'}"/>
</f:entry>
</f:optionalBlock>
<f:block>
<table width="100%">
<f:optionalBlock field="buildNeedsWorkspace" title="${%Flow run needs a workspace}"
checked="${instance.buildNeedsWorkspace}">
<f:entry field="dslFile" title="${%Read DSL from file}">
<j:getStatic var="permission" className="hudson.model.Hudson" field="RUN_SCRIPTS"/>
<f:textbox readonly="${h.hasPermission(it,permission) ? null : 'readonly'}"/>
</f:entry>
</f:optionalBlock>
</table>
</f:block>
<f:entry field="dsl" title="${%Define build flow using flow DSL}">
<j:getStatic var="permission" className="hudson.model.Hudson" field="RUN_SCRIPTS"/>
<f:textarea class="fixed-width" readonly="${h.hasPermission(it,permission) ? null : 'readonly'}" codemirror-mode="clike" codemirror-config="mode: 'text/x-groovy', lineNumbers: true, matchBrackets: true, onBlur: function(editor){editor.save()}" checkMethod="POST" />

0 comments on commit d3c3ca6

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