Skip to content

Commit 1e9d38b

Browse files
ndeloofEwelina Wilkosz
authored andcommitted
warning on export feature (#511)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent bd4959a commit 1e9d38b

1 file changed

Lines changed: 30 additions & 22 deletions

File tree

  • plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode

plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?jelly escape-by-default='true'?>
22
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
3-
<l:layout norefresh="true" type="one-column" title="${%about(app.VERSION)}">
3+
<l:layout norefresh="true" type="one-column" title="${%Configuration as Code}">
44
<l:main-panel>
55

66
<div class="container-fluid">
@@ -27,29 +27,37 @@
2727
</f:form>
2828

2929
</j:otherwise>
30-
<style>
31-
td {
32-
vertical-align: middle;
33-
}
34-
</style>
35-
<f:form method="post" action="replace" name="replace">
36-
<h2>Replace configuration source with:</h2>
37-
<f:entry title="${%Path or URL}" field="newSource" >
38-
<f:textbox checkUrl="'checkNewSource?newSource='+this.value" style="width:32em;" />
39-
</f:entry>
40-
<f:bottomButtonBar>
41-
<f:submit name="replace" value="Apply new configuration"/>
42-
</f:bottomButtonBar>
43-
</f:form>
44-
<h2>Actions</h2>
45-
<f:form method="post" action="reload" name="reload">
46-
<f:submit name="reload" value="Reload existing configuration"/>
47-
</f:form>
48-
<f:form method="post" action="export" name="export">
49-
<f:submit name="export" value="${%Export Configuration}"/>
50-
</f:form>
5130
</j:choose>
5231

32+
<style>
33+
td {
34+
vertical-align: middle;
35+
}
36+
</style>
37+
<f:form method="post" action="replace" name="replace">
38+
<h2>Replace configuration source with:</h2>
39+
<f:entry title="${%Path or URL}" field="newSource" >
40+
<f:textbox checkUrl="'checkNewSource?newSource='+this.value" style="width:32em;" />
41+
</f:entry>
42+
<f:bottomButtonBar>
43+
<f:submit name="replace" value="Apply new configuration"/>
44+
</f:bottomButtonBar>
45+
</f:form>
46+
<h2>Actions</h2>
47+
48+
<f:form method="post" action="reload" name="reload">
49+
<f:submit name="reload" value="Reload existing configuration"/>
50+
</f:form>
51+
<br/>
52+
<f:form method="post" action="export" name="export">
53+
<f:submit name="export" value="${%Export Configuration}"/>
54+
<div class="alert alert-warning">
55+
<img src="${rootURL}/images/16x16/warning.png"/>
56+
Export is not intended to offer a directly usable jenkins.yaml configuration. It can be used for inspiration
57+
writting your own, be aware export can be partial, or fail for some components.
58+
</div>
59+
</f:form>
60+
5361
<h2>${%Reference}</h2>
5462
<dt>
5563
<dl><a href="reference">${%Documentation}</a></dl>

0 commit comments

Comments
 (0)