Commit 5df3d10d authored by Raphael Defosseux's avatar Raphael Defosseux

CI: Fixes on the VM-based Jenkins scripts

 -- quieter zip of the repository
 -- remove clock skew and flexran.proto in the warning count
 -- increase to 4 CPU on VM
 -- created a new template to use host cpu properties (resolve AXV2 compilation issue)
Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent edebdf86
...@@ -21,7 +21,7 @@ pipeline { ...@@ -21,7 +21,7 @@ pipeline {
// GitLab-Jenkins plugin integration is lacking to perform the merge by itself // GitLab-Jenkins plugin integration is lacking to perform the merge by itself
// Doing it manually --> it may have merge conflicts // Doing it manually --> it may have merge conflicts
sh "./ci-scripts/doGitLabMerge.sh --src-branch ${env.gitlabSourceBranch} --src-commit ${env.gitlabMergeRequestLastCommit} --target-branch ${env.gitlabTargetBranch} --target-commit ${GIT_COMMIT}" sh "./ci-scripts/doGitLabMerge.sh --src-branch ${env.gitlabSourceBranch} --src-commit ${env.gitlabMergeRequestLastCommit} --target-branch ${env.gitlabTargetBranch} --target-commit ${GIT_COMMIT}"
sh "zip -r localZip.zip ." sh "zip -r -qq localZip.zip ."
// Running astyle options on the list of modified files by the merge request // Running astyle options on the list of modified files by the merge request
// For the moment, there is no fail criteria. Just a notification of number of files that do not follow // For the moment, there is no fail criteria. Just a notification of number of files that do not follow
...@@ -38,7 +38,7 @@ pipeline { ...@@ -38,7 +38,7 @@ pipeline {
echo "Git Branch is ${GIT_BRANCH}" echo "Git Branch is ${GIT_BRANCH}"
echo "Git Commit is ${GIT_COMMIT}" echo "Git Commit is ${GIT_COMMIT}"
sh "zip -r localZip.zip ." sh "zip -r -qq localZip.zip ."
// Running astyle options on all C/H files in the repository // Running astyle options on all C/H files in the repository
// For the moment, there is no fail criteria. Just a notification of number of files that do not follow // For the moment, there is no fail criteria. Just a notification of number of files that do not follow
sh "./ci-scripts/checkCodingFormattingRules.sh" sh "./ci-scripts/checkCodingFormattingRules.sh"
......
...@@ -146,7 +146,7 @@ echo "BUILD_EXTRA_OPTIONS = $BUILD_EXTRA_OPTIONS" ...@@ -146,7 +146,7 @@ echo "BUILD_EXTRA_OPTIONS = $BUILD_EXTRA_OPTIONS"
echo "############################################################" echo "############################################################"
echo "Creating VM ($VM_NAME) on Ubuntu Cloud Image base" echo "Creating VM ($VM_NAME) on Ubuntu Cloud Image base"
echo "############################################################" echo "############################################################"
uvt-kvm create $VM_NAME release=xenial --memory 2048 --cpu 2 uvt-kvm create $VM_NAME release=xenial --memory 2048 --cpu 4 --unsafe-caching --template ci-scripts/template-host.xml
echo "Waiting for VM to be started" echo "Waiting for VM to be started"
uvt-kvm wait $VM_NAME --insecure uvt-kvm wait $VM_NAME --insecure
......
...@@ -315,7 +315,7 @@ then ...@@ -315,7 +315,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/enb_usrp/lte-softmodem.Rel14.txt` STATUS=`egrep "warning:" ./archives/enb_usrp/lte-softmodem.Rel14.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -346,7 +346,7 @@ then ...@@ -346,7 +346,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/enb_usrp/coding.Rel14.txt` STATUS=`egrep "warning:" ./archives/enb_usrp/coding.Rel14.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -377,7 +377,7 @@ then ...@@ -377,7 +377,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt` STATUS=`egrep "warning:" ./archives/enb_usrp/oai_usrpdevif.Rel14.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -408,7 +408,7 @@ then ...@@ -408,7 +408,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/enb_usrp/params_libconfig.Rel14.txt` STATUS=`egrep "warning:" ./archives/enb_usrp/params_libconfig.Rel14.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -452,7 +452,7 @@ then ...@@ -452,7 +452,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/basic_sim/basic_simulator_enb.txt` STATUS=`egrep "warning:" ./archives/basic_sim/basic_simulator_enb.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -483,7 +483,7 @@ then ...@@ -483,7 +483,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/basic_sim/basic_simulator_ue.txt` STATUS=`egrep "warning:" ./archives/basic_sim/basic_simulator_ue.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
...@@ -514,7 +514,7 @@ then ...@@ -514,7 +514,7 @@ then
else else
echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"red\" >$STATUS</th>" >> ./build_results.html
fi fi
STATUS=`egrep -c "warning:" ./archives/basic_sim/conf2uedata.Rel14.txt` STATUS=`egrep "warning:" ./archives/basic_sim/conf2uedata.Rel14.txt | egrep -v "Clock skew detected.|flexran.proto" | egrep -c "warning:"`
if [ $STATUS -eq 0 ] if [ $STATUS -eq 0 ]
then then
echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html echo " <td bgcolor = \"green\" >$STATUS</th>" >> ./build_results.html
......
<domain type='kvm'>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-passthrough'>
</cpu>
<devices>
<interface type='network'>
<source network='default'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='0'/>
</serial>
<graphics type='vnc' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<video/>
</devices>
</domain>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment