Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
6691f87d
Commit
6691f87d
authored
16 years ago
by
Julien Bonjean
Browse files
Options
Downloads
Patches
Plain Diff
[#1422] Improved error message
parent
e2768511
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/build-system/launch-build-machine.sh
+14
-6
14 additions, 6 deletions
tools/build-system/launch-build-machine.sh
with
14 additions
and
6 deletions
tools/build-system/launch-build-machine.sh
+
14
−
6
View file @
6691f87d
...
...
@@ -7,7 +7,7 @@
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-04-20
# Last Modified: 2009-05-15 1
0:50:55
-0400
# Last Modified: 2009-05-15 1
2:23:31
-0400
#####################################################
#
...
...
@@ -77,6 +77,8 @@ DO_SEND_EMAIL=1
EDITOR
=
echo
export
EDITOR
NON_FATAL_ERRORS
=
MACHINES
=(
"ubuntu-8.04"
"ubuntu-8.04-64"
"ubuntu-8.10"
"ubuntu-8.10-64"
"ubuntu-9.04"
"ubuntu-9.04-64"
)
#########################
...
...
@@ -316,7 +318,7 @@ if [ ${DO_MAIN_LOOP} ]; then
if
[
"
$?
"
-ne
"0"
]
;
then
echo
" !! Cannot deploy packaging system"
exit
-1
NON_FATAL_ERRORS
=
"
${
NON_FATAL_ERRORS
}
!! Error when packaging for
${
MACHINE
}
\n
"
fi
echo
"Launch remote build"
...
...
@@ -324,7 +326,7 @@ if [ ${DO_MAIN_LOOP} ]; then
if
[
"
$?
"
-ne
"0"
]
;
then
echo
" !! Error during remote packaging process"
# exit -1
NON_FATAL_ERRORS
=
"
${
NON_FATAL_ERRORS
}
!! Error when packaging for
${
MACHINE
}
\n
"
fi
echo
"Retrieve dists and log files (current tag is
${
TAG
}
)"
...
...
@@ -333,7 +335,7 @@ if [ ${DO_MAIN_LOOP} ]; then
if
[
"
$?
"
-ne
"0"
]
;
then
echo
" !! Cannot retrieve remote files"
exit
-1
NON_FATAL_ERRORS
=
"
${
NON_FATAL_ERRORS
}
!! Error when packaging for
${
MACHINE
}
\n
"
fi
if
[
"
${
VM_STATE
}
"
=
"running"
]
;
then
...
...
@@ -343,8 +345,8 @@ if [ ${DO_MAIN_LOOP} ]; then
${
SSH_BASE
}
'sudo shutdown -h now'
echo
"Wait
${
SHUTDOWN_WAIT
}
s"
sleep
${
SHUTDOWN_WAIT
}
echo
"H
ard shut down
"
cd
"
${
VBOX_USER_HOME
}
"
&&
VBoxManage controlvm
${
MACHINE
}
poweroff
# h
ard shut down
(just to be sure)
cd
"
${
VBOX_USER_HOME
}
"
&&
VBoxManage controlvm
${
MACHINE
}
poweroff
>
/dev/null 2>&1
fi
done
fi
...
...
@@ -413,6 +415,12 @@ if [ ${DO_UPLOAD} ]; then
fi
fi
if
[
${
NON_FATAL_ERRORS
}
]
;
then
echo
"Non fatal errors :"
echo
${
NON_FATAL_ERRORS
}
exit
-1
fi
# close file descriptor
exec
3>&-
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment