Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d5b30724
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d5b30724
编写于
9月 16, 2022
作者:
B
Bo Ding
提交者:
GitHub
9月 16, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'docs-cloud' into docs/xiaolei/TD-18914-csharp-cloud-supplement
上级
aad806f2
dde9cccc
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
1 addition
and
217 deletion
+1
-217
Jenkinsfile2
Jenkinsfile2
+1
-217
未找到文件。
Jenkinsfile2
浏览文件 @
d5b30724
...
@@ -152,6 +152,7 @@ def pre_test_mac() {
...
@@ -152,6 +152,7 @@ def pre_test_mac() {
'''
'''
return 1
return 1
}
}
pipeline {
pipeline {
agent {label " dispatcher "}
agent {label " dispatcher "}
options { skipDefaultCheckout() }
options { skipDefaultCheckout() }
...
@@ -161,222 +162,5 @@ pipeline {
...
@@ -161,222 +162,5 @@ pipeline {
LOGDIR = '/var/data/jenkins/workspace/log'
LOGDIR = '/var/data/jenkins/workspace/log'
}
}
stages {
stages {
stage ('pre_build') {
steps {
sh '''
date
pwd
env
hostname
'''
}
}
stage ('build docs') {
when {
allOf {
expression { env.CHANGE_BRANCH =~ /docs\// }
}
}
agent {label "docusaurus"}
steps {
timeout(time: 5, unit: 'MINUTES') {
sync_source()
script {
sh '''
echo hello
'''
}
}
}
}
stage ('Parallel build stage') {
//only build pr
options { skipDefaultCheckout() }
when {
allOf {
not { expression { env.CHANGE_BRANCH =~ /docs\// }}
}
}
parallel {
stage ('dispatcher sync source') {
steps {
timeout(time: 20, unit: 'MINUTES') {
sync_source()
script {
sh '''
echo "dispatcher ready"
date
'''
}
}
}
}
stage ('build worker01') {
agent {label " worker01 "}
steps {
timeout(time: 20, unit: 'MINUTES') {
pre_test()
script {
sh '''
echo "worker01 build done"
date
'''
}
}
}
}
stage ('build worker02') {
agent {label " worker02 "}
steps {
timeout(time: 20, unit: 'MINUTES') {
pre_test()
script {
sh '''
echo "worker02 build done"
date
'''
}
}
}
}
}
}
stage('run test') {
options { skipDefaultCheckout() }
when {
allOf {
not { expression { env.CHANGE_BRANCH =~ /docs\// }}
}
}
parallel {
stage ('build worker07_arm64') {
agent {label " worker07_arm64 "}
steps {
timeout(time: 20, unit: 'MINUTES') {
pre_test()
script {
sh '''
echo "worker07_arm64 build done"
date
'''
}
}
}
}
stage ('build Mac_catalina ') {
agent {label " Mac_catalina "}
steps {
timeout(time: 20, unit: 'MINUTES') {
pre_test_mac()
script {
sh '''
echo "Mac_catalina build done"
date
'''
}
}
}
}
stage('run cases') {
steps {
sh '''
date
hostname
'''
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 20, unit: 'MINUTES') {
sh '''
date
cd ${WKC}/tests/parallel_test
time ./run.sh -m m.json -t cases.task -l ${LOGDIR} -b ${BRANCH_NAME}
date
hostname
'''
}
}
}
}
}
}
}
post {
success {
emailext (
subject: "PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' SUCCESS",
body: """
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
</head>
<body
leftmargin=
"8"
marginwidth=
"0"
topmargin=
"8"
marginheight=
"4"
offset=
"0"
>
<table
width=
"95%"
cellpadding=
"0"
cellspacing=
"0"
style=
"font-size: 16pt; font-family: Tahoma, Arial, Helvetica, sans-serif"
>
<tr>
<td>
<br/>
<b><font
color=
"#0B610B"
><font
size=
"6"
>
构建信息
</font></font></b>
<hr
size=
"2"
width=
"100%"
align=
"center"
/>
</td>
</tr>
<tr>
<td>
<ul>
<div
style=
"font-size:18px"
>
<li>
构建名称>>分支:${env.BRANCH_NAME}
</li>
<li>
构建结果:
<span
style=
"color:green"
>
Successful
</span></li>
<li>
构建编号:${BUILD_NUMBER}
</li>
<li>
触发用户:${env.CHANGE_AUTHOR}
</li>
<li>
提交信息:${env.CHANGE_TITLE}
</li>
<li>
构建地址:
<a
href=
${BUILD_URL}
>
${BUILD_URL}
</a></li>
<li>
构建日志:
<a
href=
${BUILD_URL}console
>
${BUILD_URL}console
</a></li>
</div>
</ul>
</td>
</tr>
</table>
</body>
</html>
""",
to: "${env.CHANGE_AUTHOR_EMAIL}",
from: "support@taosdata.com"
)
}
failure {
emailext (
subject: "PR-result: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' FAIL",
body: """
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
</head>
<body
leftmargin=
"8"
marginwidth=
"0"
topmargin=
"8"
marginheight=
"4"
offset=
"0"
>
<table
width=
"95%"
cellpadding=
"0"
cellspacing=
"0"
style=
"font-size: 16pt; font-family: Tahoma, Arial, Helvetica, sans-serif"
>
<tr>
<td>
<br/>
<b><font
color=
"#0B610B"
><font
size=
"6"
>
构建信息
</font></font></b>
<hr
size=
"2"
width=
"100%"
align=
"center"
/>
</td>
</tr>
<tr>
<td>
<ul>
<div
style=
"font-size:18px"
>
<li>
构建名称>>分支:${env.BRANCH_NAME}
</li>
<li>
构建结果:
<span
style=
"color:red"
>
Failure
</span></li>
<li>
构建编号:${BUILD_NUMBER}
</li>
<li>
触发用户:${env.CHANGE_AUTHOR}
</li>
<li>
提交信息:${env.CHANGE_TITLE}
</li>
<li>
构建地址:
<a
href=
${BUILD_URL}
>
${BUILD_URL}
</a></li>
<li>
构建日志:
<a
href=
${BUILD_URL}console
>
${BUILD_URL}console
</a></li>
</div>
</ul>
</td>
</tr>
</table>
</body>
</html>
""",
to: "${env.CHANGE_AUTHOR_EMAIL}",
from: "support@taosdata.com"
)
}
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录