Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
51097764
Commit
51097764
authored
May 30, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add retries for make in start-kubemark
parent
60c1b4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
start-kubemark.sh
test/kubemark/start-kubemark.sh
+13
-1
No files found.
test/kubemark/start-kubemark.sh
View file @
51097764
...
...
@@ -57,7 +57,19 @@ fi
CURR_DIR
=
`
pwd
`
cd
"
${
MAKE_DIR
}
"
make
RETRIES
=
3
for
attempt
in
$(
seq
1
${
RETRIES
})
;
do
if
!
make
;
then
if
[[
$((
attempt
))
-eq
"
${
RETRIES
}
"
]]
;
then
echo
"
${
color_red
}
Make failed. Exiting.
${
color_norm
}
"
exit
1
fi
echo
-e
"
${
color_yellow
}
Make attempt
$((
$attempt
))
failed. Retrying.
${
color_norm
}
"
>
& 2
sleep
$((
$attempt
*
5
))
else
break
fi
done
rm
kubemark
cd
$CURR_DIR
...
...
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