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 @@
// Abstraction function to send social media messages:
// like on Slack or Mattermost
def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
if (params.pipelineUsesSlack != null) {
if (params.pipelineUsesSlack) {
if (params.pipelineUsesSlack != null) {
if (params.pipelineUsesSlack) {
slackSend channel: pipeChannel, color: pipeColor, message: pipeMessage
}
}
}
}
}
......@@ -64,17 +64,18 @@ def EPC_Password = "none"
pipeline {
agent {
label pythonExecutor
}
options {
disableConcurrentBuilds()
timestamps()
gitLabConnection('OAI GitLab')
ansiColor('xterm')
agent {
label pythonExecutor
}
options {
disableConcurrentBuilds()
timestamps()
gitLabConnection('OAI GitLab')
ansiColor('xterm')
}
stages {
stage ('Retrieve latest from branch') {
stages {
stage ('Retrieve latest from branch') {
steps {
script {
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') {
sh "git log -n1"
}
}
}
stage ("Print latest commit info") {
}
stage ("print latest commit info") {
steps {
script {
echo "Building on: "
......@@ -94,8 +95,8 @@ stage ("Print latest commit info") {
//eNB_Repository = ${GIT_URL}
}
}
}
stage ("Verify Parameters") {
}
stage ("Verify Parameters") {
steps {
script {
JOB_TIMESTAMP = sh returnStdout: true, script: 'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"'
......@@ -195,9 +196,9 @@ stage ("Verify Parameters") {
//echo "params.ADB_IPAddress = ${params.ADB_IPAddress}"
}
}
}
}
stage ("Build and Test") {
stage ("Build and Test") {
steps {
script {
dir ('ci-scripts') {
......@@ -240,9 +241,9 @@ stage ("Build and Test") {
}
}
}
}
}
stage ("Terminate") {
stage ("Terminate") {
parallel {
stage('Terminate NR UE') {
steps {
......@@ -269,9 +270,9 @@ stage ("Terminate") {
}
}
}
}
}
stage('Log Collection') {
stage('Log Collection') {
parallel {
stage('Log Collection (gNB and NR UE - Build)') {
steps {
......@@ -338,9 +339,10 @@ stage('Log Collection') {
}
}
}
}
}
post {
}
}
post {
always {
script {
// Stage destroy may not be run if error in previous stage
......@@ -350,7 +352,7 @@ post {
echo "buildStageStatus = ${buildStageStatus}"
emailext attachmentsPattern: '*results*.html',
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,
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