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
e8db44dc
Commit
e8db44dc
authored
Aug 28, 2017
by
Pete Tucker
Browse files
Merge branch 'fix/failure-to-error' into 'master'
Fix build_script to exit on failure. See merge request
!11
parents
68581a24
a6f9e02f
Pipeline
#6483
passed with stages
in 218 minutes and 1 second
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
build_script
View file @
e8db44dc
...
...
@@ -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