Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bin He
openairinterface5G
Commits
290a22e1
Commit
290a22e1
authored
6 years ago
by
Boris Djalal
Browse files
Options
Downloads
Patches
Plain Diff
Adapting log collection in Jenkins script.
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
2c2d34dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/Jenkinsfile-tmp-ue
+27
-27
27 additions, 27 deletions
ci-scripts/Jenkinsfile-tmp-ue
with
27 additions
and
27 deletions
ci-scripts/Jenkinsfile-tmp-ue
+
27
−
27
View file @
290a22e1
...
@@ -236,38 +236,38 @@ pipeline {
...
@@ -236,38 +236,38 @@ pipeline {
}
}
stage
(
'Log Collection'
)
{
stage
(
'Log Collection'
)
{
parallel
{
parallel
{
stage
(
'Log Collection (
eNB
- Build)'
)
{
stage
(
'Log Collection (
OAI UE
- Build)'
)
{
steps
{
steps
{
echo
'\u2705 \u001B[32mLog Collection (
eNB
- Build)\u001B[0m'
echo
'\u2705 \u001B[32mLog Collection (
OAI UE
- Build)\u001B[0m'
//
withCredentials([
withCredentials
([
//
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.
eNB
_Credentials}", usernameVariable: '
eNB
_Username', passwordVariable: '
eNB
_Password']
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.
UE
_Credentials}"
,
usernameVariable:
'
UE
_Username'
,
passwordVariable:
'
UE
_Password'
]
//
]) {
])
{
//
sh "python3 ci-scripts/main.py --mode=LogCollectBuild --
eNB
IPAddress=${params.
eNB
_IPAddress} --
eNB
UserName=${
eNB
_Username} --
eNB
Password=${
eNB
_Password} --
eNB
SourceCodePath=${params.
eNB
_SourceCodePath}"
sh
"python3 ci-scripts/main.py --mode=LogCollectBuild --
UE
IPAddress=${params.
UE
_IPAddress} --
UE
UserName=${
UE
_Username} --
UE
Password=${
UE
_Password} --
UE
SourceCodePath=${params.
UE
_SourceCodePath}"
//
//
echo '\u2705 \u001B[32mLog Transfer (
eNB
- Build)\u001B[0m'
echo
'\u2705 \u001B[32mLog Transfer (
UE
- Build)\u001B[0m'
//
sh "sshpass -p \'${
eNB
_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${
eNB
_Username}@${params.
eNB
_IPAddress}:${
eNB
_SourceCodePath}/cmake_targets/build.log.zip ./build.log.${env.BUILD_ID}.zip || true"
sh
"sshpass -p \'${
UE
_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${
UE
_Username}@${params.
UE
_IPAddress}:${
UE
_SourceCodePath}/cmake_targets/build.log.zip ./build.log.${env.BUILD_ID}.zip || true"
//
}
}
//
script {
script
{
//
if(fileExists("build.log.${env.BUILD_ID}.zip")) {
if
(
fileExists
(
"build.log.${env.BUILD_ID}.zip"
))
{
//
archiveArtifacts "build.log.${env.BUILD_ID}.zip"
archiveArtifacts
"build.log.${env.BUILD_ID}.zip"
//
}
}
//
}
}
}
}
}
}
stage
(
'Log Collection (
eNB
- Run)'
)
{
stage
(
'Log Collection (
OAI UE
- Run)'
)
{
steps
{
steps
{
echo
'\u2705 \u001B[32mLog Collection (
eNB
- Run)\u001B[0m'
echo
'\u2705 \u001B[32mLog Collection (
OAI UE
- Run)\u001B[0m'
//
withCredentials([
withCredentials
([
//
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.
eNB
_Credentials}", usernameVariable: '
eNB
_Username', passwordVariable: '
eNB
_Password']
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.
UE
_Credentials}"
,
usernameVariable:
'
UE
_Username'
,
passwordVariable:
'
UE
_Password'
]
//
]) {
])
{
//
sh "python3 ci-scripts/main.py --mode=LogCollect
eNB --eNB
IPAddress=${params.
eNB
_IPAddress} --
eNB
UserName=${
eNB
_Username} --
eNB
Password=${
eNB
_Password} --
eNB
SourceCodePath=${params.
eNB
_SourceCodePath}"
sh
"python3 ci-scripts/main.py --mode=LogCollect
UE --UE
IPAddress=${params.
UE
_IPAddress} --
UE
UserName=${
UE
_Username} --
UE
Password=${
UE
_Password} --
UE
SourceCodePath=${params.
UE
_SourceCodePath}"
//
//
echo '\u2705 \u001B[32mLog Transfer (
eNB
- Run)\u001B[0m'
echo
'\u2705 \u001B[32mLog Transfer (
UE
- Run)\u001B[0m'
//
sh "sshpass -p \'${
eNB
_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${
eNB
_Username}@${params.
eNB
_IPAddress}:${
eNB
_SourceCodePath}/cmake_targets/e
nb
.log.zip ./e
nb
.log.${env.BUILD_ID}.zip || true"
sh
"sshpass -p \'${
UE
_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${
UE
_Username}@${params.
UE
_IPAddress}:${
UE
_SourceCodePath}/cmake_targets/
u
e.log.zip ./
u
e.log.${env.BUILD_ID}.zip || true"
//
}
}
script
{
script
{
if
(
fileExists
(
"e
nb
.log.${env.BUILD_ID}.zip"
))
{
if
(
fileExists
(
"
u
e.log.${env.BUILD_ID}.zip"
))
{
archiveArtifacts
"e
nb
.log.${env.BUILD_ID}.zip"
archiveArtifacts
"
u
e.log.${env.BUILD_ID}.zip"
}
}
if
(
fileExists
(
"ci-scripts/test_results.html"
))
{
if
(
fileExists
(
"ci-scripts/test_results.html"
))
{
sh
"mv ci-scripts/test_results.html test_results-${JOB_NAME}.html"
sh
"mv ci-scripts/test_results.html test_results-${JOB_NAME}.html"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment