Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
9b63bae9
Commit
9b63bae9
authored
Sep 14, 2020
by
袁兴强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci
parent
05937ef0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
publicTest.sh
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
+11
-4
No files found.
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
View file @
9b63bae9
...
...
@@ -14,9 +14,10 @@ NOC='\033[0m'
# 出错退出前拷贝日志文件
function
exit_cp_file
()
{
set
-x
# shellcheck disable=SC2116
#
dirNameFa=$(echo ~)
dirName
=
"/x2ethereumlogs"
dirNameFa
=
$(
echo
~
)
dirName
=
"
${
dirNameFa
}
/x2ethereumlogs"
if
[
!
-d
"
${
dirName
}
"
]
;
then
# shellcheck disable=SC2086
...
...
@@ -26,18 +27,22 @@ function exit_cp_file() {
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
:/root/logs/x2Ethereum_relayer.log
"
${
dirName
}
/ebrelayer
${
name
}
.log"
docker
exec
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
tail
-n
1000 /root/logs/x2Ethereum_relayer.log
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
${
dirName
}
/chain33.log"
docker logs
"
${
dockerNamePrefix
}
_chain33_1"
|
tail
-n
1000
exit
1
}
function
copyErrLogs
()
{
set
-x
if
[
-n
"
$CASE_ERR
"
]
;
then
# /var/lib/jenkins
# shellcheck disable=SC2116
#
dirNameFa=$(echo ~)
dirName
=
"/x2ethereumlogs"
dirNameFa
=
$(
echo
~
)
dirName
=
"
${
dirNameFa
}
/x2ethereumlogs"
if
[
!
-d
"
${
dirName
}
"
]
;
then
# shellcheck disable=SC2086
...
...
@@ -47,8 +52,10 @@ function copyErrLogs() {
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
:/root/logs/x2Ethereum_relayer.log
"
${
dirName
}
/ebrelayer
${
name
}
_rpc.log"
docker
exec
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
tail
-n
1000 /root/logs/x2Ethereum_relayer.log
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
${
dirName
}
/chain33_rpc.log"
docker logs
"
${
dockerNamePrefix
}
_chain33_1"
|
tail
-n
1000
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment