Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
002a161f
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
002a161f
编写于
10月 09, 2019
作者:
D
Daming
提交者:
wu-sheng
10月 09, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improves script (#3579)
上级
2db2638f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
8 deletion
+26
-8
Jenkinsfile-Agent-Test
Jenkinsfile-Agent-Test
+1
-1
test/plugin/run.sh
test/plugin/run.sh
+25
-7
未找到文件。
Jenkinsfile-Agent-Test
浏览文件 @
002a161f
...
...
@@ -51,7 +51,7 @@ pipeline {
stage('Compile plugin-test tools Codes') {
steps {
sh './mvnw -f test/plugin/pom.xml
-Pagent
clean package -DskipTests -Dbuild_id=${BUILD_ID} docker:build'
sh './mvnw -f test/plugin/pom.xml clean package -DskipTests -Dbuild_id=${BUILD_ID} docker:build'
}
}
...
...
test/plugin/run.sh
浏览文件 @
002a161f
...
...
@@ -17,24 +17,35 @@
# limitations under the License.
home
=
"
$(
cd
"
$(
dirname
$0
)
"
;
pwd
)
"
scenario_name
=
"
empty
"
scenario_name
=
""
parallel_run_size
=
1
force_build
=
"off"
build_id
=
"latest"
mvnw
=
${
home
}
/../../mvnw
agent_home
=
${
home
}
"/../../skywalking-agent"
scenarios_home
=
"
${
home
}
/scenarios"
_positionals
=()
print_help
()
{
echo
"Usage: run.sh [OPTION] SCENARIO [SCENARIO]"
echo
-e
"
\t
-f, --force_build
\t\t
do force to build Plugin-Test tools and images"
echo
-e
"
\t
--build_id,
\t\t\t
specify Plugin_Test's image tag. Defalt: latest"
echo
-e
"
\t
--parallel_run_size,
\t\t
parallel size of test cases. Default: 1"
}
parse_commandline
()
{
_positionals_count
=
0
while
test
$#
-gt
0
do
_key
=
"
$1
"
case
"
$_key
"
in
-f
|
--force_build
)
force_build
=
"on"
shift
;;
--build_id
)
test
$#
-lt
2
&&
die
"Missing value for the optional argument '
$_key
'."
1
test
$#
-lt
2
&&
exitWithMessage
"Missing value for the optional argument '
$_key
'."
build_id
=
"
$2
"
shift
;;
...
...
@@ -42,7 +53,7 @@ parse_commandline() {
build_id
=
"
${
_key
##--build_id=
}
"
;;
--parallel_run_size
)
test
$#
-lt
2
&&
die
"Missing value for the optional argument '
$_key
'."
1
test
$#
-lt
2
&&
exitWithMessage
"Missing value for the optional argument '
$_key
'."
parallel_run_size
=
"
$2
"
shift
;;
...
...
@@ -93,9 +104,15 @@ waitForAvailable() {
exitAndClean 1
fi
}
parse_commandline
"
$@
"
start_stamp
=
`
date
+%s
`
### start
parse_commandline
"
$@
"
if
[[
!
-d
${
agent_home
}
]]
;
then
echo
"[WARN] SkyWalking Agent not exists"
${
mvnw
}
-f
${
home
}
/../../pom.xml
-Pagent
-DskipTests
clean package
fi
[[
"
$force_build
"
==
"on"
]]
&&
${
mvnw
}
-f
${
home
}
/pom.xml clean package
-DskipTests
-Dbuild_id
=
${
build_id
}
docker:build
workspace
=
"
${
home
}
/workspace/
${
scenario_name
}
"
task_state_house
=
"
${
workspace
}
/.states"
...
...
@@ -104,7 +121,8 @@ mkdir -p ${task_state_house}
plugin_autotest_helper
=
"
${
home
}
/dist/plugin-autotest-helper.jar"
if
[[
!
-f
${
plugin_autotest_helper
}
]]
;
then
exitWithMessage
"plugin autotest helper not exist!"
exitWithMessage
"Plugin autotest tools not exists, Please re-try it with '-f'"
print_helper
fi
echo
"start submit job"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录