-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
112 additions
and
20 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
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
10 changes: 10 additions & 0 deletions
10
plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationAsCodeBootFailure.java
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.jenkins.plugins.casc; | ||
|
||
import hudson.util.BootFailure; | ||
|
||
public class ConfigurationAsCodeBootFailure extends BootFailure { | ||
|
||
public ConfigurationAsCodeBootFailure(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/error.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout"> | ||
<l:layout type="one-column" title="${%Error loading configuration}"> | ||
<l:main-panel> | ||
<l:app-bar title="${%Error loading configuration}" /> | ||
|
||
<p>Invalid configuration elements for configurator with name: <pre><code>${target}</code></pre></p> | ||
<p>Attribute was: <pre><code>${invalidAttribute}</code></pre></p> | ||
<p>Valid attributes are:</p> | ||
|
||
<ul> | ||
<j:forEach var="attribute" items="${validAttributes}"> | ||
<li>${attribute}</li> | ||
</j:forEach> | ||
</ul> | ||
</l:main-panel> | ||
</l:layout> | ||
</j:jelly> |
18 changes: 18 additions & 0 deletions
18
plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCodeBootFailure/index.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout"> | ||
<l:layout type="one-column" title="${%Error loading configuration}"> | ||
<l:main-panel> | ||
<l:app-bar title="${%Error loading configuration}" /> | ||
|
||
<p>Invalid configuration elements for configurator with name: <pre><code>${it.cause.configurator.name}</code></pre></p> | ||
<p>Attribute was: <pre><code>${it.cause.invalidAttribute}</code></pre></p> | ||
<p>Valid attributes are:</p> | ||
|
||
<ul> | ||
<j:forEach var="attribute" items="${it.cause.validAttributes}"> | ||
<li>${attribute}</li> | ||
</j:forEach> | ||
</ul> | ||
</l:main-panel> | ||
</l:layout> | ||
</j:jelly> |