Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangwenhui
OpenXG-RAN
Commits
6f6c90cb
Commit
6f6c90cb
authored
Jun 15, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper exit status on local build
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
f9f7e7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
ci-scripts/buildLocally.sh
ci-scripts/buildLocally.sh
+31
-0
No files found.
ci-scripts/buildLocally.sh
View file @
6f6c90cb
...
...
@@ -50,6 +50,7 @@ esac
done
cd
$JENKINS_WKSP
STATUS
=
0
############################################################
# Creating a tmp folder to store results and artifacts
...
...
@@ -75,19 +76,35 @@ fi
# Generated log files:
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/lte-softmodem.Rel14.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target lte-softmodem"
$JENKINS_WKSP
/cmake_targets/log/lte-softmodem.Rel14.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/lte-softmodem.Rel14.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/params_libconfig.Rel14.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target params_libconfig"
$JENKINS_WKSP
/cmake_targets/log/params_libconfig.Rel14.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/params_libconfig.Rel14.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/coding.Rel14.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target coding"
$JENKINS_WKSP
/cmake_targets/log/coding.Rel14.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/coding.Rel14.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/oai_usrpdevif.Rel14.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target oai_usrpdevif"
$JENKINS_WKSP
/cmake_targets/log/oai_usrpdevif.Rel14.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/oai_usrpdevif.Rel14.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
############################################################
...
...
@@ -104,15 +121,27 @@ cd $JENKINS_WKSP/cmake_targets
# Generated log files:
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_enb.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target lte-softmodem"
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_enb.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_enb.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_ue.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target lte-uesoftmodem"
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_ue.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/basic_simulator_ue.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
if
[
-f
$JENKINS_WKSP
/cmake_targets/log/conf2uedata.Rel14.txt
]
then
LOCAL_STAT
=
`
egrep
-c
"Built target conf2uedata"
$JENKINS_WKSP
/cmake_targets/log/conf2uedata.Rel14.txt
`
if
[
$LOCAL_STAT
-eq
0
]
;
then
STATUS
=
-1
;
fi
cp
$JENKINS_WKSP
/cmake_targets/log/conf2uedata.Rel14.txt
$ARCHIVES_LOC
else
STATUS
=
-1
fi
############################################################
...
...
@@ -120,3 +149,5 @@ fi
############################################################
cd
$JENKINS_WKSP
/archives/
zip
-r
local_build_logs.zip basic_sim enb_usrp
exit
$STATUS
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