-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #204
- Loading branch information
Showing
7 changed files
with
191 additions
and
37 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
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
51 changes: 50 additions & 1 deletion
51
src/main/resources/io/jenkins/plugins/DingTalkNotifierConfig/help-content_zh_CN.html
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 +1,50 @@ | ||
自定义的消息内容,需要使用 markdown 格式,支持环境变量。 | ||
追加消息内容,需要使用 markdown 格式 | ||
<br> | ||
<br> | ||
支持的环境变量: | ||
<ul> | ||
<li><a href = 'https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables'>Jenkins | ||
内置的环境变量</a></li> | ||
<li> | ||
<table> | ||
<thead> | ||
<th width='200px'>变量</th> | ||
<th>描述</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>EXECUTOR_NAME</td> | ||
<td>构建人姓名</td> | ||
</tr> | ||
<tr> | ||
<td>EXECUTOR_MOBILE</td> | ||
<td>构建人手机号</td> | ||
</tr> | ||
<tr> | ||
<td>PROJECT_NAME</td> | ||
<td>项目名称</td> | ||
</tr> | ||
<tr> | ||
<td>PROJECT_URL</td> | ||
<td>项目地址</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_NAME</td> | ||
<td>任务名称</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_URL</td> | ||
<td>任务地址</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_DURATION</td> | ||
<td>任务持续时间</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_STATUS</td> | ||
<td>任务状态</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</li> | ||
</ul> |
50 changes: 50 additions & 0 deletions
50
src/main/resources/io/jenkins/plugins/DingTalkNotifierConfig/help-message_zh_CN.html
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,50 @@ | ||
自定义消息,支持 markdown 格式 | ||
<br> | ||
<br> | ||
支持的环境变量: | ||
<ul> | ||
<li><a href = 'https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables'>Jenkins | ||
内置的环境变量</a></li> | ||
<li> | ||
<table> | ||
<thead> | ||
<th width='200px'>变量</th> | ||
<th>描述</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>EXECUTOR_NAME</td> | ||
<td>构建人姓名</td> | ||
</tr> | ||
<tr> | ||
<td>EXECUTOR_MOBILE</td> | ||
<td>构建人手机号</td> | ||
</tr> | ||
<tr> | ||
<td>PROJECT_NAME</td> | ||
<td>项目名称</td> | ||
</tr> | ||
<tr> | ||
<td>PROJECT_URL</td> | ||
<td>项目地址</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_NAME</td> | ||
<td>任务名称</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_URL</td> | ||
<td>任务地址</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_DURATION</td> | ||
<td>任务持续时间</td> | ||
</tr> | ||
<tr> | ||
<td>JOB_STATUS</td> | ||
<td>任务状态</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</li> | ||
</ul> |
1 change: 1 addition & 0 deletions
1
src/main/resources/io/jenkins/plugins/DingTalkNotifierConfig/help-raw_zh_CN.html
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 @@ | ||
禁用插件内部封装的消息仅发送下方的 <strong>自定义内容</strong>,相当于使用 markdown 完全自定义消息 |
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,15 @@ | ||
(function($) { | ||
$(function() { | ||
$(document).on('change', '.notifier-config-raw input[name="_.raw"]', | ||
function(event) { | ||
if (event.target.checked) { | ||
$('.raw-content').css('display', '') | ||
$('.none-raw-content').css('display', 'none') | ||
} else { | ||
$('.raw-content').css('display', 'none') | ||
$('.none-raw-content').css('display', '') | ||
} | ||
}) | ||
}) | ||
|
||
})(jQuery3 || jQuery) |