Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
5c85b17b
Commit
5c85b17b
authored
Jan 21, 2021
by
ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix in pipeline
Signed-off-by:
ismail
<
mohammed.ismail@openairinterface.org
>
parent
f0d3d851
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
148 deletions
+154
-148
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+22
-16
ci-scripts/generateHtmlReport.py
ci-scripts/generateHtmlReport.py
+132
-132
No files found.
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
5c85b17b
...
...
@@ -163,14 +163,14 @@ pipeline {
gitlabCommitStatus
(
name:
"Static Code Analysis"
)
{
// Running on xenial to have 1.72 version of cppcheck
myShCmd
(
'docker run --name ci-cn-cppcheck -d ubuntu:xenial /bin/bash -c "sleep infinity"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-cppcheck /bin/bash -c "apt-get update && apt-get upgrade --yes" > archives/cppcheck_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-cppcheck /bin/bash -c "apt-get install --yes cppcheck bzip2" >> archives/cppcheck_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-cppcheck /bin/bash -c "apt-get update && apt-get upgrade --yes" > archives/cppcheck_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-cppcheck /bin/bash -c "apt-get install --yes cppcheck bzip2" >> archives/cppcheck_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker cp ./openair-amf.tar.bz2 ci-cn-cppcheck:/home'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-cppcheck /bin/bash -c "cd /home && tar -xjf openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-cppcheck /bin/bash -c "rm -f /home/openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-cppcheck /bin/bash -c "cd /home && tar -xjf openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-cppcheck /bin/bash -c "rm -f /home/openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-cppcheck /bin/bash -c "cd /home && cppcheck --enable=warning --force --xml --xml-version=2 --suppressions-list=ci-scripts/cppcheck_suppressions.list src 2> cppcheck.xml 1> cppcheck_build.log"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-cppcheck /bin/bash -c "cd /home && cppcheck --enable=warning --force --xml --xml-version=2 --suppressions-list=ci-scripts/cppcheck_suppressions.list src 2> cppcheck.xml 1> cppcheck_build.log"'
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
}
...
...
@@ -198,19 +198,19 @@ pipeline {
script
{
gitlabCommitStatus
(
name:
"Code Formatting Checker"
)
{
myShCmd
(
'docker run --name ci-cn-clang-formatter -d ubuntu:bionic /bin/bash -c "sleep infinity"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "apt-get update && apt-get upgrade --yes" > archives/clang_format_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "apt-get install --yes git tree bzip2" >> archives/clang_format_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "apt-get update && apt-get upgrade --yes" > archives/clang_format_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "apt-get install --yes git tree bzip2" >> archives/clang_format_install.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker cp ./openair-amf.tar.bz2 ci-cn-clang-formatter:/home'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "cd /home && tar -xjf openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "rm -f /home/openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "cd /home && tar -xjf openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "rm -f /home/openair-amf.tar.bz2"'
,
new_host_flag
,
new_host_user
,
new_host
)
// We install a dedicated version (installed on our CI server).
myShCmd
(
'docker cp /opt/clang-format/9.0.0/bin/clang-format ci-cn-clang-formatter:/usr/local/bin'
,
new_host_flag
,
new_host_user
,
new_host
)
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "cd /home && ./ci-scripts/checkCodingFormattingRules.sh --src-branch '
+
env
.
gitlabSourceBranch
+
' --target-branch '
+
env
.
gitlabTargetBranch
+
'"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "cd /home && ./ci-scripts/checkCodingFormattingRules.sh --src-branch '
+
env
.
gitlabSourceBranch
+
' --target-branch '
+
env
.
gitlabTargetBranch
+
'"'
,
new_host_flag
,
new_host_user
,
new_host
)
}
else
{
myShCmd
(
'docker exec
-it
ci-cn-clang-formatter /bin/bash -c "cd /home && ./ci-scripts/checkCodingFormattingRules.sh"'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker exec ci-cn-clang-formatter /bin/bash -c "cd /home && ./ci-scripts/checkCodingFormattingRules.sh"'
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
}
...
...
@@ -239,7 +239,7 @@ pipeline {
steps
{
script
{
gitlabCommitStatus
(
name:
"Test with DsTester"
)
{
localStatus
=
build
job:
'CI-OpenAir-CN5G-FED'
,
localStatus
=
build
job:
params
.
CN5G_FED_PipelineName
,
parameters:
[
string
(
name:
'AMF_TAG'
,
value:
String
.
valueOf
(
amf_tag
)),
string
(
name:
'AMF_BRANCH'
,
value:
String
.
valueOf
(
amf_branch
))
...
...
@@ -258,7 +258,7 @@ pipeline {
post
{
always
{
script
{
copyArtifacts
(
projectName:
'CI-OpenAir-CN5G-FED'
,
copyArtifacts
(
projectName:
params
.
CN5G_FED_PipelineName
,
filter:
'*_results_oai_cn5g.html'
,
selector:
lastCompleted
())
}
...
...
@@ -325,14 +325,20 @@ pipeline {
// Sending email to commiter
emailext
attachmentsPattern:
'*results*.html'
,
body:
'''Hi,
if (params.sendToCommitterEmail != null) {
if (params.sendToCommitterEmail) {
emailext attachmentsPattern: '*results*.html',
body: '''
Hi
,
Here
are
attached
HTML
report
files
for
$PROJECT_NAME
-
Build
#
$BUILD_NUMBER
-
$BUILD_STATUS
!
Regards
,
OAI
CI
Team
''
'
,
replyTo:
'no-reply@openairinterface.org'
,
subject:
'$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
,
to:
gitCommitAuthorEmailAddr
replyTo:
'no-reply@openairinterface.org'
,
subject:
'$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
,
to:
gitCommitAuthorEmailAddr
}
}
}
}
}
...
...
ci-scripts/generateHtmlReport.py
View file @
5c85b17b
This diff is collapsed.
Click to expand it.
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