Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-25744 Switch job property to use an optionalBlock
Normal convention for Jenkins plugins which contribute a JobProperty to a jobs configuration page is to use an optionalBlock as the top level jelly tag. In a jobs properties section of the configuration page, plugins 'hide' their configuration entries by using the optionalBlock, this is presented to the user as a checkbox. This keeps the jobs configuration page quite clean while allowing the user full control over the properties they use.
- Loading branch information
Showing
7 changed files
with
84 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/main/resources/se/diabol/jenkins/pipeline/PipelineProperty/config.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<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:section title="Delivery Pipeline configuration"> | ||
<f:optionalBlock name="configEnabled" title="Delivery Pipeline configuration" inline="true" checked="${instance.configEnabled}"> | ||
<f:entry title="Stage Name" field="stageName"> | ||
<f:textbox name="stageName" value="${instance.getStageName()}"/> | ||
</f:entry> | ||
|
||
<f:entry title="Task Name" field="taskName"> | ||
<f:textbox name="taskName" value="${instance.getTaskName()}"/> | ||
</f:entry> | ||
</f:section> | ||
</j:jelly> | ||
</f:optionalBlock> | ||
</j:jelly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters