Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
1f72068d
Commit
1f72068d
authored
8 years ago
by
Andreas Antener
Browse files
Options
Downloads
Patches
Plain Diff
Integrationtests: updated script to properly handle log uploads
parent
14f75bc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integrationtests/upload_test_logs.bash
+10
-14
10 additions, 14 deletions
integrationtests/upload_test_logs.bash
with
10 additions
and
14 deletions
integrationtests/upload_test_logs.bash
+
10
−
14
View file @
1f72068d
#!/bin/bash
#
#
Run container and start test execution
#
Upload SITL CI logs to Flight Review
#
# License: according to LICENSE.md in the root directory of the PX4 Firmware repository
if
[
-z
"
$WORKSPACE
"
]
;
then
echo
"
\$
WORKSPACE not set
"
if
[
-z
"
$WORKSPACE
"
]
||
[
-z
"
${
ghprbActualCommitAuthorEmail
}
"
]
||
[
-z
"
${
ghprbPullDescription
}
"
]
;
then
echo
"
Environment not set. Needs to be called from within Jenkins.
"
exit
1
fi
# determine the directory of the source given the directory of this script
pushd
`
dirname
$0
`
>
/dev/null
SCRIPTPATH
=
`
pwd
`
popd
>
/dev/null
ORIG_SRC
=
$(
dirname
$SCRIPTPATH
)
echo
"Uploading test logs to Flight Review"
echo
"uploading test logs to Flight Review
"
f
or
LOG
in
`
ls
$WORKSPACE
/test_results
/
**
/
*
.ulg
`
do
LINK
=
`
$ORIG_SRC
/Tools/upload_log.py
-q
--source
CI
$LOG
`
echo
"Test log:
$LINK
"
done
CMD
=
"
$WORKSPACE
/Firmware/Tools/upload_log.py
"
f
ind
"
$WORKSPACE
/test_results
"
-name
\*
.ulg
-exec
"
$CMD
"
-q
\
--description
"
${
ghprbPullDescription
}
"
--source
CI
"{}"
\;
# XXX: move up if we want email notifications
# --email "${ghprbActualCommitAuthorEmail}" \
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