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
spbro
OpenXG-RAN
Commits
5c2a5fd7
Commit
5c2a5fd7
authored
Apr 08, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI]: removing the cppcheck stages from the old pipeline
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
1019a56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
31 deletions
+2
-31
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+2
-31
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
5c2a5fd7
...
...
@@ -226,27 +226,8 @@ pipeline {
}
}
stage
(
"Start VM -- cppcheck"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
7
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant cppcheck --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Variant Builds"
)
{
parallel
{
stage
(
"Analysis with cppcheck"
)
{
steps
{
gitlabCommitStatus
(
name:
"Analysis with cppcheck"
)
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool wait --workspace $WORKSPACE --variant cppcheck --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
}
}
stage
(
"Build basic simulator"
)
{
steps
{
gitlabCommitStatus
(
name:
"Build basic-sim"
)
{
...
...
@@ -315,9 +296,9 @@ pipeline {
script
{
dir
(
'archives'
)
{
if
(
fileExists
(
'red_hat'
))
{
sh
"zip -r -qq vm_build_logs.zip basic_sim
enb_usrp phy_sim cppcheck
enb_eth ue_eth gnb_usrp nr_ue_usrp red_hat"
sh
"zip -r -qq vm_build_logs.zip basic_sim
phy_sim
enb_eth ue_eth gnb_usrp nr_ue_usrp red_hat"
}
else
{
sh
"zip -r -qq vm_build_logs.zip basic_sim
enb_usrp phy_sim cppcheck
enb_eth ue_eth gnb_usrp nr_ue_usrp"
sh
"zip -r -qq vm_build_logs.zip basic_sim
phy_sim
enb_eth ue_eth gnb_usrp nr_ue_usrp"
}
}
if
(
fileExists
(
'archives/vm_build_logs.zip'
))
{
...
...
@@ -325,16 +306,6 @@ pipeline {
}
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
sh
"./ci-scripts/oai-ci-vm-tool report-build --workspace $WORKSPACE --git-url ${GIT_URL} --job-name ${JOB_NAME} --build-id ${BUILD_ID} --trigger merge-request --src-branch ${env.gitlabSourceBranch} --src-commit ${env.gitlabMergeRequestLastCommit} --target-branch ${env.gitlabTargetBranch} --target-commit ${GIT_COMMIT}"
// If the merge request has introduced more CPPCHECK errors or warnings, notifications in GitLab
if
(
fileExists
(
'oai_cppcheck_added_errors.txt'
))
{
def
ret
=
readFile
(
'./oai_cppcheck_added_errors.txt'
).
trim
();
if
(
"0"
.
equals
(
ret
))
{
echo
"No added cppcheck warnings/errors in this merge request"
}
else
{
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): Some modified files in Merge Request MAY have INTRODUCED up to "
+
ret
+
" CPPCHECK errors/warnings"
addGitLabMRComment
comment:
message
}
}
// If the merge request has introduced compilation warnings, notifications in GitLab
sh
"./ci-scripts/checkAddedWarnings.sh --src-branch ${env.gitlabSourceBranch} --target-branch ${env.gitlabTargetBranch}"
def
res
=
readFile
(
'./oai_warning_files.txt'
).
trim
();
...
...
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