Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6d34da39
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6d34da39
编写于
2月 03, 2021
作者:
L
liuyq-617
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-2493]<test>fix email error
上级
27fa9419
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
8 deletion
+26
-8
Jenkinsfile
Jenkinsfile
+26
-8
未找到文件。
Jenkinsfile
浏览文件 @
6d34da39
...
@@ -31,6 +31,7 @@ def abort_previous(){
...
@@ -31,6 +31,7 @@ def abort_previous(){
if
(
buildNumber
>
1
)
milestone
(
buildNumber
-
1
)
if
(
buildNumber
>
1
)
milestone
(
buildNumber
-
1
)
milestone
(
buildNumber
)
milestone
(
buildNumber
)
}
}
def
kipstage
=
0
def
pre_test
(){
def
pre_test
(){
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
sh
'''
sh
'''
...
@@ -72,12 +73,29 @@ pipeline {
...
@@ -72,12 +73,29 @@ pipeline {
}
}
stages
{
stages
{
stage
(
'pre_build'
){
agent
{
label
'master'
}
steps
{
sh
'''
cd ${WORKSPACE}
git checkout develop
git pull
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
'''
script
{
skipstage
=
sh
(
script:
"git --no-pager diff --name-only FETCH_HEAD develop|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 1 "
,
returnStdout:
true
)
}
}
}
stage
(
'Parallel test stage'
)
{
stage
(
'Parallel test stage'
)
{
//only build pr
//only build pr
when
{
when
{
changeRequest
()
changeRequest
()
expression
{
skipstage
==
0
}
}
}
parallel
{
parallel
{
stage
(
'python_1_s1'
)
{
stage
(
'python_1_s1'
)
{
...
@@ -127,7 +145,7 @@ pipeline {
...
@@ -127,7 +145,7 @@ pipeline {
stage
(
'test_b1_s2'
)
{
stage
(
'test_b1_s2'
)
{
agent
{
label
'b1'
}
agent
{
label
'b1'
}
steps
{
steps
{
timeout
(
time:
90
,
unit:
'MINUTES'
){
timeout
(
time:
45
,
unit:
'MINUTES'
){
pre_test
()
pre_test
()
sh
'''
sh
'''
cd ${WKC}/tests
cd ${WKC}/tests
...
@@ -245,7 +263,7 @@ pipeline {
...
@@ -245,7 +263,7 @@ pipeline {
success
{
success
{
emailext
(
emailext
(
subject:
"PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
,
subject:
"PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
,
body:
'''
<!DOCTYPE html>
body:
"""
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<meta charset="UTF-8">
<meta charset="UTF-8">
...
@@ -261,7 +279,7 @@ pipeline {
...
@@ -261,7 +279,7 @@ pipeline {
<td>
<td>
<ul>
<ul>
<div style="font-size:18px">
<div style="font-size:18px">
<li>构建名称>>分支:${
PROJECT_NAME
}</li>
<li>构建名称>>分支:${
env.CHANGE_BRANCK
}</li>
<li>构建结果:<span style="color:green"> Successful </span></li>
<li>构建结果:<span style="color:green"> Successful </span></li>
<li>构建编号:${BUILD_NUMBER}</li>
<li>构建编号:${BUILD_NUMBER}</li>
<li>触发用户:${CAUSE}</li>
<li>触发用户:${CAUSE}</li>
...
@@ -275,7 +293,7 @@ pipeline {
...
@@ -275,7 +293,7 @@ pipeline {
</tr>
</tr>
</table></font>
</table></font>
</body>
</body>
</html>
'''
,
</html>
"""
,
to:
"${env.CHANGE_AUTHOR_EMAIL}"
,
to:
"${env.CHANGE_AUTHOR_EMAIL}"
,
from:
"support@taosdata.com"
from:
"support@taosdata.com"
)
)
...
@@ -283,7 +301,7 @@ pipeline {
...
@@ -283,7 +301,7 @@ pipeline {
failure
{
failure
{
emailext
(
emailext
(
subject:
"PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
,
subject:
"PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
,
body:
'''
<!DOCTYPE html>
body:
"""
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<meta charset="UTF-8">
<meta charset="UTF-8">
...
@@ -299,7 +317,7 @@ pipeline {
...
@@ -299,7 +317,7 @@ pipeline {
<td>
<td>
<ul>
<ul>
<div style="font-size:18px">
<div style="font-size:18px">
<li>构建名称>>分支:${
PROJECT_NAME
}</li>
<li>构建名称>>分支:${
env.CHANGE_BRANCK
}</li>
<li>构建结果:<span style="color:green"> Successful </span></li>
<li>构建结果:<span style="color:green"> Successful </span></li>
<li>构建编号:${BUILD_NUMBER}</li>
<li>构建编号:${BUILD_NUMBER}</li>
<li>触发用户:${CAUSE}</li>
<li>触发用户:${CAUSE}</li>
...
@@ -313,7 +331,7 @@ pipeline {
...
@@ -313,7 +331,7 @@ pipeline {
</tr>
</tr>
</table></font>
</table></font>
</body>
</body>
</html>
'''
,
</html>
"""
,
to:
"${env.CHANGE_AUTHOR_EMAIL}"
,
to:
"${env.CHANGE_AUTHOR_EMAIL}"
,
from:
"support@taosdata.com"
from:
"support@taosdata.com"
)
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录