Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2e7866db
T
TDengine
项目概览
taosdata
/
TDengine
11 个月 前同步成功
通知
1179
Star
22014
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2e7866db
编写于
9月 15, 2021
作者:
L
liuyq-617
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update jenkins
上级
0fc2985b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
170 addition
and
147 deletion
+170
-147
Jenkinsfile
Jenkinsfile
+170
-147
未找到文件。
Jenkinsfile
浏览文件 @
2e7866db
...
...
@@ -56,6 +56,12 @@ def pre_test(){
cd ${WKC}
git checkout 2.0
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'3.0'
){
sh
'''
cd ${WKC}
git checkout 3.0
'''
}
else
{
sh
'''
...
...
@@ -86,6 +92,12 @@ def pre_test(){
git checkout 2.0
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'3.0'
){
sh
'''
cd ${WK}
git checkout 3.0
'''
}
else
{
sh
'''
cd ${WK}
...
...
@@ -145,6 +157,11 @@ pipeline {
git checkout 2.0
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'3.0'
){
sh
'''
git checkout 3.0
'''
}
else
{
sh
'''
git checkout develop
...
...
@@ -182,13 +199,13 @@ pipeline {
steps
{
pre_test
()
timeout
(
time:
55
,
unit:
'MINUTES'
){
sh
'''
date
cd ${WKC}/tests
./test-all.sh p1
date'''
}
//
timeout(time: 55, unit: 'MINUTES'){
//
sh '''
//
date
//
cd ${WKC}/tests
//
./test-all.sh p1
//
date'''
//
}
}
}
...
...
@@ -197,66 +214,68 @@ pipeline {
steps
{
pre_test
()
timeout
(
time:
55
,
unit:
'MINUTES'
){
sh
'''
date
cd ${WKC}/tests
./test-all.sh p2
date'''
}
//
timeout(time: 55, unit: 'MINUTES'){
//
sh '''
//
date
//
cd ${WKC}/tests
//
./test-all.sh p2
//
date'''
//
}
}
}
stage
(
'python_3_s6'
)
{
agent
{
label
" slave6 || slave16 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
date
cd ${WKC}/tests
./test-all.sh p3
date'''
}
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// date
// cd ${WKC}/tests
// ./test-all.sh p3
// date'''
// }
}
}
stage
(
'test_b1_s2'
)
{
agent
{
label
" slave2 || slave12 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
nohup taosd >/dev/null &
sleep 10
'''
sh
'''
cd ${WKC}/tests/examples/nodejs
npm install td2.0-connector > /dev/null 2>&1
node nodejsChecker.js host=localhost
node test1970.js
cd ${WKC}/tests/connectorTest/nodejsTest/nanosupport
npm install td2.0-connector > /dev/null 2>&1
node nanosecondTest.js
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// rm -rf /var/lib/taos/*
// rm -rf /var/log/taos/*
// nohup taosd >/dev/null &
// sleep 10
// '''
// sh '''
// cd ${WKC}/tests/examples/nodejs
// npm install td2.0-connector > /dev/null 2>&1
// node nodejsChecker.js host=localhost
// node test1970.js
// cd ${WKC}/tests/connectorTest/nodejsTest/nanosupport
// npm install td2.0-connector > /dev/null 2>&1
// node nanosecondTest.js
'''
sh
'''
cd ${WKC}/tests/examples/C#/taosdemo
mcs -out:taosdemo *.cs > /dev/null 2>&1
echo '' |./taosdemo -c /etc/taos
cd ${WKC}/tests/connectorTest/C#Test/nanosupport
mcs -out:nano *.cs > /dev/null 2>&1
echo '' |./nano
'''
sh
'''
cd ${WKC}/tests/gotest
bash batchtest.sh
'''
sh
'''
cd ${WKC}/tests
./test-all.sh b1fq
date'''
}
//
'''
//
sh '''
//
cd ${WKC}/tests/examples/C#/taosdemo
//
mcs -out:taosdemo *.cs > /dev/null 2>&1
//
echo '' |./taosdemo -c /etc/taos
//
cd ${WKC}/tests/connectorTest/C#Test/nanosupport
//
mcs -out:nano *.cs > /dev/null 2>&1
//
echo '' |./nano
//
'''
//
sh '''
//
cd ${WKC}/tests/gotest
//
bash batchtest.sh
//
'''
//
sh '''
//
cd ${WKC}/tests
//
./test-all.sh b1fq
//
date'''
//
}
}
}
stage
(
'test_crash_gen_s3'
)
{
...
...
@@ -264,34 +283,34 @@ pipeline {
steps
{
pre_test
()
timeout
(
time:
60
,
unit:
'MINUTES'
){
sh
'''
cd ${WKC}/tests/pytest
./crash_gen.sh -a -p -t 4 -s 2000
'''
}
timeout
(
time:
60
,
unit:
'MINUTES'
){
// sh '''
// cd ${WKC}/tests/pytest
// rm -rf /var/lib/taos/*
// rm -rf /var/log/taos/*
// ./handle_crash_gen_val_log.sh
// '''
sh
'''
cd ${WKC}/tests/pytest
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
./handle_taosd_val_log.sh
'''
}
timeout
(
time:
55
,
unit:
'MINUTES'
){
sh
'''
date
cd ${WKC}/tests
./test-all.sh b2fq
date
'''
}
//
timeout(time: 60, unit: 'MINUTES'){
//
sh '''
//
cd ${WKC}/tests/pytest
//
./crash_gen.sh -a -p -t 4 -s 2000
//
'''
//
}
//
timeout(time: 60, unit: 'MINUTES'){
//
// sh '''
//
// cd ${WKC}/tests/pytest
//
// rm -rf /var/lib/taos/*
//
// rm -rf /var/log/taos/*
//
// ./handle_crash_gen_val_log.sh
//
// '''
//
sh '''
//
cd ${WKC}/tests/pytest
//
rm -rf /var/lib/taos/*
//
rm -rf /var/log/taos/*
//
./handle_taosd_val_log.sh
//
'''
//
}
//
timeout(time: 55, unit: 'MINUTES'){
//
sh '''
//
date
//
cd ${WKC}/tests
//
./test-all.sh b2fq
//
date
//
'''
//
}
}
}
stage
(
'test_valgrind_s4'
)
{
...
...
@@ -299,83 +318,87 @@ pipeline {
steps
{
pre_test
()
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
sh
'''
cd ${WKC}/tests/pytest
./valgrind-test.sh 2>&1 > mem-error-out.log
./handle_val_log.sh
'''
}
timeout
(
time:
55
,
unit:
'MINUTES'
){
sh
'''
date
cd ${WKC}/tests
./test-all.sh b3fq
date'''
sh
'''
date
cd ${WKC}/tests
./test-all.sh full example
date'''
}
//
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
//
sh '''
//
cd ${WKC}/tests/pytest
//
./valgrind-test.sh 2>&1 > mem-error-out.log
//
./handle_val_log.sh
//
'''
//
}
//
timeout(time: 55, unit: 'MINUTES'){
//
sh '''
//
date
//
cd ${WKC}/tests
//
./test-all.sh b3fq
//
date'''
//
sh '''
//
date
//
cd ${WKC}/tests
//
./test-all.sh full example
//
date'''
//
}
}
}
stage
(
'test_b4_s7'
)
{
agent
{
label
" slave7 || slave17 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
date
cd ${WKC}/tests
./test-all.sh b4fq
cd ${WKC}/tests
./test-all.sh p4
cd ${WKC}/tests
./test-all.sh full jdbc
cd ${WKC}/tests
./test-all.sh full unit
date'''
}
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// date
// cd ${WKC}/tests
// ./test-all.sh b4fq
// cd ${WKC}/tests
// ./test-all.sh p4
// cd ${WKC}/tests
// ./test-all.sh full jdbc
// cd ${WKC}/tests
// ./test-all.sh full unit
// date'''
// }
}
}
stage
(
'test_b5_s8'
)
{
agent
{
label
" slave8 || slave18 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
date
cd ${WKC}/tests
./test-all.sh b5fq
date'''
}
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// date
// cd ${WKC}/tests
// ./test-all.sh b5fq
// date'''
// }
}
}
stage
(
'test_b6_s9'
)
{
agent
{
label
" slave9 || slave19 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
date
cd ${WKC}/tests
./test-all.sh b6fq
date'''
}
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// date
// cd ${WKC}/tests
// ./test-all.sh b6fq
// date'''
// }
}
}
stage
(
'test_b7_s10'
)
{
agent
{
label
" slave10 || slave20 "
}
steps
{
timeout
(
time:
55
,
unit:
'MINUTES'
){
pre_test
()
sh
'''
date
cd ${WKC}/tests
./test-all.sh b7fq
date'''
}
steps
{
pre_test
()
// timeout(time: 55, unit: 'MINUTES'){
// sh '''
// date
// cd ${WKC}/tests
// ./test-all.sh b7fq
// date'''
// }
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录