-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-59697] Create a tagib to display the result of the last bundle
- Loading branch information
Showing
2 changed files
with
54 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"> | ||
<st:documentation> | ||
Check if Jenkins Health Advisor by CloudBees the server is available. | ||
<st:attribute name="result" use="required"> | ||
The result of the previous upload. | ||
</st:attribute> | ||
</st:documentation> | ||
|
||
<j:if test="${result!=null}"> | ||
<j:if test="${result!=null && result.contains('ERROR')}"> | ||
<div class="alert alert-danger" role="alert"> | ||
<strong> | ||
<i class="fa fa-minus-circle"/> | ||
Last upload failed! | ||
</strong> | ||
<p> | ||
<pre> | ||
<code>${result}</code> | ||
</pre> | ||
</p> | ||
</div> | ||
</j:if> | ||
<j:if test="${result!=null && result.contains('WARN')}"> | ||
<div class="alert alert-warning" role="alert"> | ||
<strong> | ||
<i class="fa fa-exclamation-triangle"/> | ||
Last upload skipped! | ||
</strong> | ||
<p> | ||
<pre> | ||
<code>${result}</code> | ||
</pre> | ||
</p> | ||
</div> | ||
</j:if> | ||
<j:if | ||
test="${result!=null && !result.contains('ERROR') && !result.contains('WARN')}"> | ||
<div class="alert alert-success" role="alert"> | ||
<strong> | ||
<i class="fa fa-check-circle"/> | ||
Last upload succeeded! | ||
</strong> | ||
<p> | ||
<pre> | ||
<code>${result}</code> | ||
</pre> | ||
</p> | ||
</div> | ||
</j:if> | ||
</j:if> | ||
|
||
</j:jelly> |