Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
1461b7c2
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1461b7c2
编写于
2月 19, 2021
作者:
H
huili
提交者:
GitHub
2月 19, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5207 from taosdata/test/jenkins
[TD-2980]<test>add nodejs connector test into CI
上级
5434f52c
38f6e4a6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
5 deletion
+14
-5
Jenkinsfile
Jenkinsfile
+4
-3
tests/Jenkinsfile
tests/Jenkinsfile
+7
-0
tests/script/jenkins/basic_2.txt
tests/script/jenkins/basic_2.txt
+0
-1
tests/script/jenkins/basic_4.txt
tests/script/jenkins/basic_4.txt
+3
-1
未找到文件。
Jenkinsfile
浏览文件 @
1461b7c2
...
@@ -5,7 +5,7 @@ node {
...
@@ -5,7 +5,7 @@ node {
git
url:
'https://github.com/taosdata/TDengine.git'
git
url:
'https://github.com/taosdata/TDengine.git'
}
}
def
kipstage
=
0
def
s
kipstage
=
0
def
abortPreviousBuilds
()
{
def
abortPreviousBuilds
()
{
def
currentJobName
=
env
.
JOB_NAME
def
currentJobName
=
env
.
JOB_NAME
def
currentBuildNumber
=
env
.
BUILD_NUMBER
.
toInteger
()
def
currentBuildNumber
=
env
.
BUILD_NUMBER
.
toInteger
()
...
@@ -88,8 +88,9 @@ pipeline {
...
@@ -88,8 +88,9 @@ pipeline {
git checkout -qf FETCH_HEAD
git checkout -qf FETCH_HEAD
'''
'''
script
{
script
{
skipstage
=
sh
(
script:
"
git --no-pager diff --name-only FETCH_HEAD develop|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 0 "
,
returnStdout:
true
)
env
.
skipstage
=
sh
(
script:
"cd ${WORKSPACE}.tes &&
git --no-pager diff --name-only FETCH_HEAD develop|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 0 "
,
returnStdout:
true
)
}
}
println
env
.
skipstage
sh
'''
sh
'''
rm -rf ${WORKSPACE}.tes
rm -rf ${WORKSPACE}.tes
'''
'''
...
@@ -101,7 +102,7 @@ pipeline {
...
@@ -101,7 +102,7 @@ pipeline {
when
{
when
{
changeRequest
()
changeRequest
()
expression
{
expression
{
skipstage
!=
0
env
.
skipstage
!=
0
}
}
}
}
parallel
{
parallel
{
...
...
tests/Jenkinsfile
浏览文件 @
1461b7c2
...
@@ -109,6 +109,13 @@ pipeline {
...
@@ -109,6 +109,13 @@ pipeline {
java --class-path=../../../../src/connector/jdbc/target:$JAVA_HOME/jre/lib/ext -jar target/JDBCDemo-SNAPSHOT-jar-with-dependencies.jar -host 127.0.0.1
java --class-path=../../../../src/connector/jdbc/target:$JAVA_HOME/jre/lib/ext -jar target/JDBCDemo-SNAPSHOT-jar-with-dependencies.jar -host 127.0.0.1
'''
'''
}
}
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
sh
'''
cp -rf ${WKC}/tests/examples/nodejs ${JENKINS_HOME}/workspace/
cd ${JENKINS_HOME}/workspace/nodejs
node nodejsChecker.js host=localhost
'''
}
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
sh
'''
sh
'''
cd ${JENKINS_HOME}/workspace/C#NET/src/CheckC#
cd ${JENKINS_HOME}/workspace/C#NET/src/CheckC#
...
...
tests/script/jenkins/basic_2.txt
浏览文件 @
1461b7c2
...
@@ -72,4 +72,3 @@ cd ../../../debug; make
...
@@ -72,4 +72,3 @@ cd ../../../debug; make
./test.sh -f unique/cluster/cache.sim
./test.sh -f unique/cluster/cache.sim
./test.sh -f unique/cluster/vgroup100.sim
./test.sh -f unique/cluster/vgroup100.sim
./test.sh -f unique/column/replica3.sim
\ No newline at end of file
tests/script/jenkins/basic_4.txt
浏览文件 @
1461b7c2
...
@@ -35,4 +35,6 @@
...
@@ -35,4 +35,6 @@
./test.sh -f general/stable/refcount.sim
./test.sh -f general/stable/refcount.sim
./test.sh -f general/stable/show.sim
./test.sh -f general/stable/show.sim
./test.sh -f general/stable/values.sim
./test.sh -f general/stable/values.sim
./test.sh -f general/stable/vnode3.sim
./test.sh -f general/stable/vnode3.sim
\ No newline at end of file
./test.sh -f unique/column/replica3.sim
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录