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
canghaiwuhen
OpenXG-RAN
Commits
cdb98704
Commit
cdb98704
authored
Jan 18, 2019
by
donganyuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_ci' into 'develop'
fix gitlab display problem See merge request !2
parents
946ae925
79f1bc7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+22
-22
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
cdb98704
...
...
@@ -40,7 +40,7 @@ pipeline {
disableConcurrentBuilds
()
timestamps
()
gitLabConnection
(
'OAI GitLab'
)
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build basic-sim"
,
"Build phy-sim"
,
"Build eNb-ethernet"
,
"Build UE-ethernet"
,
"Analysis with cppcheck"
,
"Test phy-sim"
,
"Test basic-sim"
])
//
, "Test-FDD-Band7", "Test-TDD-Band40"])
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build basic-sim"
,
"Build phy-sim"
,
"Build eNb-ethernet"
,
"Build UE-ethernet"
,
"Analysis with cppcheck"
,
"Test phy-sim"
])
//, "Test basic-sim"
, "Test-FDD-Band7", "Test-TDD-Band40"])
ansiColor
(
'xterm'
)
}
...
...
@@ -198,32 +198,32 @@ pipeline {
}
}
}
stage
(
"Build eNb-USRP on Red Hat"
)
{
when
{
expression
{
doRedHatBuild
}
}
steps
{
gitlabCommitStatus
(
name:
"Build eNb-USRP-CentOS"
)
{
script
{
try
{
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.RedHatRemoteCredentials}"
,
usernameVariable:
'RH_Username'
,
passwordVariable:
'RH_Password'
]
])
{
sh
"./ci-scripts/buildOnRH.sh --workspace $WORKSPACE --job-name ${JOB_NAME} --build-id ${BUILD_ID} --remote-host ${params.RedHatRemoteServer} --remote-path ${params.RedHatWorkingPath} --remote-user-name ${RH_Username} --remote-password ${RH_Password}"
}
}
catch
(
Exception
e
)
{
echo
"Red Hat build failed not an error now"
}
}
}
}
}
//
stage ("Build eNb-USRP on Red Hat") {
//
when {
//
expression {doRedHatBuild}
//
}
//
steps {
//
gitlabCommitStatus(name: "Build eNb-USRP-CentOS") {
//
script {
//
try {
//
withCredentials([
//
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.RedHatRemoteCredentials}", usernameVariable: 'RH_Username', passwordVariable: 'RH_Password']
//
]) {
//
sh "./ci-scripts/buildOnRH.sh --workspace $WORKSPACE --job-name ${JOB_NAME} --build-id ${BUILD_ID} --remote-host ${params.RedHatRemoteServer} --remote-path ${params.RedHatWorkingPath} --remote-user-name ${RH_Username} --remote-password ${RH_Password}"
//
}
//
} catch (Exception e) {
//
echo "Red Hat build failed not an error now"
//
}
//
}
//
}
//
}
//
}
}
post
{
always
{
script
{
dir
(
'archives'
)
{
sh
"zip -r -qq vm_build_logs.zip basic_sim enb_usrp phy_sim cppcheck enb_eth ue_eth
red_hat"
sh
"zip -r -qq vm_build_logs.zip basic_sim enb_usrp phy_sim cppcheck enb_eth ue_eth
"
//red_hat
}
if
(
fileExists
(
'archives/vm_build_logs.zip'
))
{
archiveArtifacts
artifacts:
'archives/vm_build_logs.zip'
...
...
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