Remove LogCollectIperf option: not used
This commit is contained in:
@@ -319,27 +319,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Log Collection (Iperf)') {
|
|
||||||
when {
|
|
||||||
expression {doEpcLogCollection}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.EPC_Credentials}", usernameVariable: 'EPC_Username', passwordVariable: 'EPC_Password']
|
|
||||||
]) {
|
|
||||||
echo '\u2705 \u001B[32mLog Collection (Iperf)\u001B[0m'
|
|
||||||
sh "python3 ci-scripts/main.py --mode=LogCollectIperf --EPCIPAddress=${params.EPC_IPAddress} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --EPCType=${params.EPC_Type}"
|
|
||||||
|
|
||||||
echo '\u2705 \u001B[32mLog Transfer (Iperf)\u001B[0m'
|
|
||||||
sh "sshpass -p \'${EPC_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${EPC_Username}@${params.EPC_IPAddress}:${EPC_SourceCodePath}/scripts/iperf.log.zip ./iperf.log.${env.BUILD_ID}.zip || true"
|
|
||||||
}
|
|
||||||
script {
|
|
||||||
if(fileExists("iperf.log.${env.BUILD_ID}.zip")) {
|
|
||||||
archiveArtifacts "iperf.log.${env.BUILD_ID}.zip"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Log Collection (SPGW)') {
|
stage('Log Collection (SPGW)') {
|
||||||
when {
|
when {
|
||||||
expression {doEpcLogCollection}
|
expression {doEpcLogCollection}
|
||||||
|
|||||||
@@ -385,28 +385,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Log Collection (Iperf)') {
|
|
||||||
// Bypassing this stage if EPC server is not defined
|
|
||||||
when {
|
|
||||||
expression { params.EPC_IPAddress != "none" }
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.EPC_Credentials}", usernameVariable: 'EPC_Username', passwordVariable: 'EPC_Password']
|
|
||||||
]) {
|
|
||||||
echo '\u2705 \u001B[32mLog Collection (Iperf)\u001B[0m'
|
|
||||||
sh "python3 ci-scripts/main.py --mode=LogCollectIperf --EPCIPAddress=${params.EPC_IPAddress} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --EPCType=${params.EPC_Type}"
|
|
||||||
|
|
||||||
echo '\u2705 \u001B[32mLog Transfer (Iperf)\u001B[0m'
|
|
||||||
sh "sshpass -p \'${EPC_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${EPC_Username}@${params.EPC_IPAddress}:${EPC_SourceCodePath}/scripts/iperf.log.zip ./iperf.log.${env.BUILD_ID}.zip || true"
|
|
||||||
}
|
|
||||||
script {
|
|
||||||
if(fileExists("iperf.log.${env.BUILD_ID}.zip")) {
|
|
||||||
archiveArtifacts "iperf.log.${env.BUILD_ID}.zip"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -411,28 +411,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Log Collection (Iperf)') {
|
|
||||||
// Bypassing this stage if EPC server is not defined
|
|
||||||
when {
|
|
||||||
expression { params.EPC_IPAddress != "none" }
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
withCredentials([
|
|
||||||
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.EPC_Credentials}", usernameVariable: 'EPC_Username', passwordVariable: 'EPC_Password']
|
|
||||||
]) {
|
|
||||||
echo '\u2705 \u001B[32mLog Collection (Iperf)\u001B[0m'
|
|
||||||
sh "python3 ci-scripts/main.py --mode=LogCollectIperf --EPCIPAddress=${params.EPC_IPAddress} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --EPCType=${params.EPC_Type}"
|
|
||||||
|
|
||||||
echo '\u2705 \u001B[32mLog Transfer (Iperf)\u001B[0m'
|
|
||||||
sh "sshpass -p \'${EPC_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${EPC_Username}@${params.EPC_IPAddress}:${EPC_SourceCodePath}/scripts/iperf.log.zip ./iperf.log.${env.BUILD_ID}.zip || true"
|
|
||||||
}
|
|
||||||
script {
|
|
||||||
if(fileExists("iperf.log.${env.BUILD_ID}.zip")) {
|
|
||||||
archiveArtifacts "iperf.log.${env.BUILD_ID}.zip"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -908,17 +908,6 @@ class OaiCiTest():
|
|||||||
cmd.run(f'rm -f {d}/build.log.zip')
|
cmd.run(f'rm -f {d}/build.log.zip')
|
||||||
cmd.run(f'cd {d} && zip -r build.log.zip build_log_*/*')
|
cmd.run(f'cd {d} && zip -r build.log.zip build_log_*/*')
|
||||||
|
|
||||||
def LogCollectIperf(self,EPC):
|
|
||||||
# Some pipelines are using "none" IP / Credentials
|
|
||||||
# In that case, just forget about it
|
|
||||||
if EPC.IPAddress == 'none':
|
|
||||||
sys.exit(0)
|
|
||||||
with cls_cmd.getConnection(EPC.IPAddress) as cmd:
|
|
||||||
d = f"{EPC.SourceCodePath}/scripts"
|
|
||||||
cmd.run(f'rm -f {d}/iperf.log.zip')
|
|
||||||
cmd.run(f'cd {d} && zip iperf.log.zip iperf*.log')
|
|
||||||
cmd.run(f'rm {d}/iperf*.log')
|
|
||||||
|
|
||||||
def ShowTestID(self):
|
def ShowTestID(self):
|
||||||
logging.info(f'\u001B[1m----------------------------------------\u001B[0m')
|
logging.info(f'\u001B[1m----------------------------------------\u001B[0m')
|
||||||
logging.info(f'\u001B[1m Test ID: {self.testCase_id} \u001B[0m')
|
logging.info(f'\u001B[1m Test ID: {self.testCase_id} \u001B[0m')
|
||||||
|
|||||||
+1
-4
@@ -574,10 +574,7 @@ elif re.match('^LogCollectSPGW$', mode, re.IGNORECASE):
|
|||||||
elif re.match('^LogCollectPing$', mode, re.IGNORECASE):
|
elif re.match('^LogCollectPing$', mode, re.IGNORECASE):
|
||||||
logging.warning("Option LogCollectPing ignored")
|
logging.warning("Option LogCollectPing ignored")
|
||||||
elif re.match('^LogCollectIperf$', mode, re.IGNORECASE):
|
elif re.match('^LogCollectIperf$', mode, re.IGNORECASE):
|
||||||
if EPC.IPAddress == '' or EPC.UserName == '' or EPC.Password == '' or EPC.SourceCodePath == '':
|
logging.warning("Option LogCollectIperf ignored")
|
||||||
HELP.GenericHelp(CONST.Version)
|
|
||||||
sys.exit('Insufficient Parameter')
|
|
||||||
CiTestObj.LogCollectIperf(EPC)
|
|
||||||
elif re.match('^LogCollectOAIUE$', mode, re.IGNORECASE):
|
elif re.match('^LogCollectOAIUE$', mode, re.IGNORECASE):
|
||||||
logging.warning("Option LogCollectOAIUE ignored")
|
logging.warning("Option LogCollectOAIUE ignored")
|
||||||
elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
|
elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
|
||||||
|
|||||||
Reference in New Issue
Block a user