Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vesta
board-support-package
Commits
a6f9e02f
Commit
a6f9e02f
authored
Aug 28, 2017
by
David Mondou
Browse files
Fix build_script to exit on failure.
parent
68581a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
build_script
View file @
a6f9e02f
...
...
@@ -8,7 +8,7 @@ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/che
chmod a+x /home/chewbacca/bin/repo
sudo
-i -
u chewbacca
/bin/bash << EOF
sudo
s
u chewbacca
cd /home/chewbacca
...
...
@@ -64,7 +64,16 @@ bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-100 minimal build FAILED; exit 1; fi
EOF
#check the exit code again. We were running as user chewbacca so if
#an exit 1 was executed it will exit user chewbacca and back into root.
#This will require another exit 1 to stop the build and report the error
#as intended
if [ $? -ne 0 ]; then
echo build FAILED
exit 1
else
exit
fi
#clean out old images
rm -rf /artifacts/*
...
...
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