Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
520c3216
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看板
未验证
提交
520c3216
编写于
12月 02, 2021
作者:
Y
Yiqing Liu
提交者:
GitHub
12月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-11752]<CI>different branches use different dir (#8909)
* [TD-11752]<CI>different branches use different dir * fix * update
上级
e3efcabd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
91 addition
and
152 deletion
+91
-152
Jenkinsfile
Jenkinsfile
+91
-152
未找到文件。
Jenkinsfile
浏览文件 @
520c3216
...
...
@@ -41,68 +41,54 @@ def pre_test(){
killall -9 taosd ||echo "no taosd running"
killall -9 gdb || echo "no gdb running"
killall -9 python3.8 || echo "no python program running"
cd ${W
KC
}
git reset --hard HEAD~10 >/dev/null
cd ${W
S
}
rm -rf ${WK}
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WKC}
git checkout master
cd ${WS}
cd TDinternal_master
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_master TDinternal
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WKC}
git checkout 2.0
cd ${WS}
cd TDinternal_2.0
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_2.0 TDinternal
'''
}
else
{
sh
'''
cd ${WKC}
git checkout develop
cd ${WS}
cd TDinternal_develop
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_develop TDinternal
'''
}
}
sh
'''
cd ${WKC}
[ -f src/connector/grafanaplugin/README.md ] && rm -f src/connector/grafanaplugin/README.md > /dev/null || echo "failed to remove grafanaplugin README.md"
git pull >/dev/null
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
git clean -dfx
git ls-files --stage | grep 160000 | awk '{print $4}' | xargs git rm --cached
git submodule update --init --recursive
cd ${WK}
git reset --hard HEAD~10
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WK}
git checkout master
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WK}
git checkout 2.0
'''
}
else
{
sh
'''
cd ${WK}
git checkout develop
'''
}
}
sh
'''
cd ${WK}
git pull >/dev/null
cd ${WK}
export TZ=Asia/Harbin
date
git clean -dfx
mkdir debug
cd debug
cmake .. > /dev/null
...
...
@@ -116,140 +102,112 @@ def pre_test(){
def
pre_test_noinstall
(){
sh
'hostname'
sh
'''
cd ${W
KC
}
git reset --hard HEAD~10 >/dev/null
cd ${W
S
}
rm -rf ${WK}
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WKC}
git checkout master
cd ${WS}
cd TDinternal_master
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_master TDinternal
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WKC}
git checkout 2.0
cd ${WS}
cd TDinternal_20
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_20 TDinternal
'''
}
else
{
sh
'''
cd ${WKC}
git checkout develop
cd ${WS}
cd TDinternal_develop
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_develop TDinternal
'''
}
}
sh
'''
cd ${WKC}
[ -f src/connector/grafanaplugin/README.md ] && rm -f src/connector/grafanaplugin/README.md > /dev/null || echo "failed to remove grafanaplugin README.md"
git pull >/dev/null
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
git clean -dfx
git ls-files --stage | grep 160000 | awk '{print $4}' | xargs git rm --cached
git submodule update --init --recursive
cd ${WK}
git reset --hard HEAD~10
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WK}
git checkout master
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WK}
git checkout 2.0
'''
}
else
{
sh
'''
cd ${WK}
git checkout develop
'''
}
}
sh
'''
cd ${WK}
git pull >/dev/null
cd ${WK}
export TZ=Asia/Harbin
date
git clean -dfx
mkdir debug
cd debug
cmake .. > /dev/null
make
make
'''
return
1
}
def
pre_test_mac
(){
sh
'hostname'
sh
'''
cd ${W
KC
}
git reset --hard HEAD~10 >/dev/null
cd ${W
S
}
rm -rf ${WK}
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WKC}
git checkout master
cd ${WS}
cd TDinternal_master
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_master TDinternal
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WKC}
git checkout 2.0
cd ${WS}
cd TDinternal_20
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_20 TDinternal
'''
}
else
{
sh
'''
cd ${WKC}
git checkout develop
cd ${WS}
cd TDinternal_develop
git pull
cd community
git pull
cd ${WS}
cp -fr TDinternal_develop TDinternal
'''
}
}
sh
'''
cd ${WKC}
[ -f src/connector/grafanaplugin/README.md ] && rm -f src/connector/grafanaplugin/README.md > /dev/null || echo "failed to remove grafanaplugin README.md"
git pull >/dev/null
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
git clean -dfx
git ls-files --stage | grep 160000 | awk '{print $4}' | xargs git rm --cached
git submodule update --init --recursive
cd ${WK}
git reset --hard HEAD~10
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
sh
'''
cd ${WK}
git checkout master
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WK}
git checkout 2.0
'''
}
else
{
sh
'''
cd ${WK}
git checkout develop
'''
}
}
sh
'''
cd ${WK}
git pull >/dev/null
cd ${WK}
export TZ=Asia/Harbin
date
git clean -dfx
mkdir debug
cd debug
cmake .. > /dev/null
...
...
@@ -262,67 +220,47 @@ def pre_test_win(){
taskkill /f /t /im python.exe
cd C:\\
rd /s /Q C:\\TDengine
cd C:\\workspace\\TDinternal
rd /s /Q C:\\workspace\\TDinternal\\debug
cd C:\\workspace\\TDinternal\\community
git reset --hard HEAD~10
cd C:\\workspace
rd /s /Q C:\\workspace\\TDinternal | echo 1
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
bat
'''
cd C:\\workspace\\TDinternal\\community
git checkout master
cd C:\\workspace\\TDinternal_master
git pull
cd C:\\workspace\\TDinternal_master\\community
git pull
xcopy /e/y/i/f C:\\workspace\\TDinternal_master C:\\workspace\\TDinternal
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
bat
'''
cd C:\\workspace\\TDinternal\\community
git checkout 2.0
cd C:\\workspace\\TDinternal_20
git pull
cd C:\\workspace\\TDinternal_20\\community
git pull
xcopy /e/y/i/f C:\\workspace\\TDinternal_20 C:\\workspace\\TDinternal
'''
}
else
{
bat
'''
cd C:\\workspace\\TDinternal\\community
git checkout develop
cd C:\\workspace\\TDinternal_develop
git pull
cd C:\\workspace\\TDinternal_develop\\community
git pull
xcopy /e/y/i/f C:\\workspace\\TDinternal_develop C:\\workspace\\TDinternal
'''
}
}
bat
'''
cd C:\\workspace\\TDinternal\\community
git pull
git fetch origin +refs/pull/%CHANGE_ID%/merge
git checkout -qf FETCH_HEAD
git clean -dfx
git submodule update --init --recursive
cd C:\\workspace\\TDinternal
git reset --hard HEAD~10
'''
script
{
if
(
env
.
CHANGE_TARGET
==
'master'
)
{
bat
'''
cd C:\\workspace\\TDinternal
git checkout master
'''
}
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
bat
'''
cd C:\\workspace\\TDinternal
git checkout 2.0
'''
}
else
{
bat
'''
cd C:\\workspace\\TDinternal
git checkout develop
'''
}
}
bat
'''
cd C:\\workspace\\TDinternal
git pull
date
git clean -dfx
mkdir debug
cd debug
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" amd64
...
...
@@ -342,6 +280,7 @@ pipeline {
environment
{
WK
=
'/var/lib/jenkins/workspace/TDinternal'
WKC
=
'/var/lib/jenkins/workspace/TDinternal/community'
WS
=
'/var/lib/jenkins/workspace'
}
stages
{
stage
(
'pre_build'
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录