Commit 494f26a7 authored by Boris Djalal's avatar Boris Djalal

Code formatting.

Signed-off-by: default avatarBoris Djalal <boris.djalal@eurecom.fr>
parent b923c712
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
// Abstraction function to send social media messages: // Abstraction function to send social media messages:
// like on Slack or Mattermost // like on Slack or Mattermost
def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) { def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
if (params.pipelineUsesSlack != null) { if (params.pipelineUsesSlack != null) {
if (params.pipelineUsesSlack) { if (params.pipelineUsesSlack) {
slackSend channel: pipeChannel, color: pipeColor, message: pipeMessage slackSend channel: pipeChannel, color: pipeColor, message: pipeMessage
} }
} }
} }
...@@ -64,17 +64,18 @@ def EPC_Password = "none" ...@@ -64,17 +64,18 @@ def EPC_Password = "none"
pipeline { pipeline {
agent { agent {
label pythonExecutor label pythonExecutor
} }
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
timestamps() timestamps()
gitLabConnection('OAI GitLab') gitLabConnection('OAI GitLab')
ansiColor('xterm') ansiColor('xterm')
} }
stages {
stage ('Retrieve latest from branch') { stages {
stage ('Retrieve latest from branch') {
steps { steps {
script { script {
checkout([$class: 'GitSCM', branches: [[name: '*/gNB-nrUE-USRP']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitlab.eurecom.fr/oai/openairinterface5g.git']]]) checkout([$class: 'GitSCM', branches: [[name: '*/gNB-nrUE-USRP']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitlab.eurecom.fr/oai/openairinterface5g.git']]])
...@@ -82,8 +83,8 @@ stage ('Retrieve latest from branch') { ...@@ -82,8 +83,8 @@ stage ('Retrieve latest from branch') {
sh "git log -n1" sh "git log -n1"
} }
} }
} }
stage ("Print latest commit info") { stage ("print latest commit info") {
steps { steps {
script { script {
echo "Building on: " echo "Building on: "
...@@ -94,8 +95,8 @@ stage ("Print latest commit info") { ...@@ -94,8 +95,8 @@ stage ("Print latest commit info") {
//eNB_Repository = ${GIT_URL} //eNB_Repository = ${GIT_URL}
} }
} }
} }
stage ("Verify Parameters") { stage ("Verify Parameters") {
steps { steps {
script { script {
JOB_TIMESTAMP = sh returnStdout: true, script: 'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"' JOB_TIMESTAMP = sh returnStdout: true, script: 'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"'
...@@ -195,9 +196,9 @@ stage ("Verify Parameters") { ...@@ -195,9 +196,9 @@ stage ("Verify Parameters") {
//echo "params.ADB_IPAddress = ${params.ADB_IPAddress}" //echo "params.ADB_IPAddress = ${params.ADB_IPAddress}"
} }
} }
} }
stage ("Build and Test") { stage ("Build and Test") {
steps { steps {
script { script {
dir ('ci-scripts') { dir ('ci-scripts') {
...@@ -240,9 +241,9 @@ stage ("Build and Test") { ...@@ -240,9 +241,9 @@ stage ("Build and Test") {
} }
} }
} }
} }
stage ("Terminate") { stage ("Terminate") {
parallel { parallel {
stage('Terminate NR UE') { stage('Terminate NR UE') {
steps { steps {
...@@ -269,9 +270,9 @@ stage ("Terminate") { ...@@ -269,9 +270,9 @@ stage ("Terminate") {
} }
} }
} }
} }
stage('Log Collection') { stage('Log Collection') {
parallel { parallel {
stage('Log Collection (gNB and NR UE - Build)') { stage('Log Collection (gNB and NR UE - Build)') {
steps { steps {
...@@ -338,9 +339,10 @@ stage('Log Collection') { ...@@ -338,9 +339,10 @@ stage('Log Collection') {
} }
} }
} }
} }
} }
post {
post {
always { always {
script { script {
// Stage destroy may not be run if error in previous stage // Stage destroy may not be run if error in previous stage
...@@ -350,7 +352,7 @@ post { ...@@ -350,7 +352,7 @@ post {
echo "buildStageStatus = ${buildStageStatus}" echo "buildStageStatus = ${buildStageStatus}"
emailext attachmentsPattern: '*results*.html', emailext attachmentsPattern: '*results*.html',
body: '''Hi, body: '''Hi,
Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $buildStageStatus! Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - ${buildStageStatus}!
Regards, Regards,
OAI CI Team''', OAI CI Team''',
......
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