Commit f953ba4b authored by Raphael Defosseux's avatar Raphael Defosseux

CI: adding trigger to FED test

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 23e9ec75
......@@ -42,6 +42,10 @@ def new_host_flag = false
def new_host = ""
def new_host_user = ""
// Variables to pass to the FED Test job
def spgwu_tag = 'develop'
def spgwu_branch = 'develop'
//-------------------------------------------------------------------------------
// Pipeline start
pipeline {
......@@ -87,6 +91,8 @@ pipeline {
echo "PR TITLE is ${env.ghprbPullTitle}"
sh "./ci-scripts/doGitHubPullRequestTempMerge.sh --src-branch ${env.ghprbSourceBranch} --src-commit ${env.ghprbActualCommit} --target-branch ${env.ghprbTargetBranch} --target-commit ${GIT_COMMIT}"
sh "sleep 10"
spgwu_tag = 'ci-temp'
spgwu_branch = env.ghprbSourceBranch
} else {
echo "======= THIS IS A PUSH EVENT ======"
echo "Git Branch is ${GIT_BRANCH}"
......@@ -219,7 +225,7 @@ pipeline {
}
}
}
stage('Deploy Full EPC') {
stage('Deploy Sanity Check Test') {
stages {
stage('Create Docker Networks') {
steps {
......@@ -329,6 +335,35 @@ pipeline {
}
}
}
stage ('Undeploy Sanity Check Test') {
steps {
script {
// Killing all containers
myShCmd('docker rm -f ci-oai-spgwc ci-oai-spgwu', new_host_flag, new_host_user, new_host)
// Removing all intermediate networks
myShCmd('docker network rm ci-s11 ci-sx ci-s1u', new_host_flag, new_host_user, new_host)
}
}
}
stage ('Testing in FED environment') {
steps {
script {
localStatus = build job: 'CI-OpenAir-EPC-FED',
parameters: [
string(name: 'SPGWU_TAG', value: String.valueOf(spgwu_tag)),
string(name: 'SPGWU_BRANCH', value: String.valueOf(spgwu_branch))
], propagate: false
localResult = localStatus.getResult()
if (localStatus.resultIsBetterOrEqualTo('SUCCESS')) {
echo "Federation Test Job is OK"
} else {
echo "Federation Test Job is KO"
sh "ci-scripts/fail.sh"
}
}
}
}
}
post {
success {
......
#!/bin/bash
#/*
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# * contributor license agreements. See the NOTICE file distributed with
# * this work for additional information regarding copyright ownership.
# * The OpenAirInterface Software Alliance licenses this file to You under
# * the OAI Public License, Version 1.1 (the "License"); you may not use this file
# * except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.openairinterface.org/?page_id=698
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *-------------------------------------------------------------------------------
# * For more information about the OpenAirInterface (OAI) Software Alliance:
# * contact@openairinterface.org
# */
exit -1
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