Remove LogCollectUE options: not used
This commit is contained in:
@@ -309,9 +309,6 @@ pipeline {
|
|||||||
withCredentials([
|
withCredentials([
|
||||||
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password']
|
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password']
|
||||||
]) {
|
]) {
|
||||||
echo '\u2705 \u001B[32mLog Collection (OAI UE - Run)\u001B[0m'
|
|
||||||
sh "python3 ci-scripts/main.py --mode=LogCollectOAIUE --UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath}"
|
|
||||||
|
|
||||||
echo '\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
|
echo '\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
|
||||||
sh "sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/ue.log.zip ./ue.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/ue.log.zip ./ue.log.${env.BUILD_ID}.zip || true"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,9 +293,6 @@ pipeline {
|
|||||||
withCredentials([
|
withCredentials([
|
||||||
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password']
|
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password']
|
||||||
]) {
|
]) {
|
||||||
echo '\u2705 \u001B[32mLog Collection (OAI UE - Run)\u001B[0m'
|
|
||||||
sh "python3 ci-scripts/main.py --mode=LogCollectOAIUE --UEIPAddress=${params.UE_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password} --UESourceCodePath=${params.UE_SourceCodePath}"
|
|
||||||
|
|
||||||
echo '\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
|
echo '\u2705 \u001B[32mLog Transfer (OAI UE - Run)\u001B[0m'
|
||||||
sh "sshpass -p \'${UE_Password}\' scp -o 'StrictHostKeyChecking no' -o 'ConnectTimeout 10' ${UE_Username}@${params.UE_IPAddress}:${UE_SourceCodePath}/cmake_targets/ue.log.zip ./ue.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/ue.log.zip ./ue.log.${env.BUILD_ID}.zip || true"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -930,17 +930,6 @@ class OaiCiTest():
|
|||||||
cmd.run(f'cd {d} && zip iperf.log.zip iperf*.log')
|
cmd.run(f'cd {d} && zip iperf.log.zip iperf*.log')
|
||||||
cmd.run(f'rm {d}/iperf*.log')
|
cmd.run(f'rm {d}/iperf*.log')
|
||||||
|
|
||||||
def LogCollectOAIUE(self):
|
|
||||||
# Some pipelines are using "none" IP / Credentials
|
|
||||||
# In that case, just forget about it
|
|
||||||
if self.UEIPAddress == 'none':
|
|
||||||
sys.exit(0)
|
|
||||||
with cls_cmd.getConnection(self.UEIPAddress) as cmd:
|
|
||||||
d = f'{self.UESourceCodePath}/cmake_targets'
|
|
||||||
cmd.run(f'echo {self.UEPassword} | sudo -S rm -f {d}/ue.log.zip')
|
|
||||||
cmd.run(f'cd {d} && echo {self.UEPassword} | sudo -S zip ue.log.zip ue*.log core* ue_*record.raw ue_*.pcap ue_*txt')
|
|
||||||
cmd.run(f'echo {self.UEPassword} | sudo -S rm {d}/ue*.log {d}/core* {d}/ue_*record.raw {d}/ue_*.pcap {d}/ue_*txt')
|
|
||||||
|
|
||||||
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
@@ -582,10 +582,7 @@ elif re.match('^LogCollectIperf$', mode, re.IGNORECASE):
|
|||||||
sys.exit('Insufficient Parameter')
|
sys.exit('Insufficient Parameter')
|
||||||
CiTestObj.LogCollectIperf(EPC)
|
CiTestObj.LogCollectIperf(EPC)
|
||||||
elif re.match('^LogCollectOAIUE$', mode, re.IGNORECASE):
|
elif re.match('^LogCollectOAIUE$', mode, re.IGNORECASE):
|
||||||
if CiTestObj.UEIPAddress == '' or CiTestObj.UEUserName == '' or CiTestObj.UEPassword == '' or CiTestObj.UESourceCodePath == '':
|
logging.warning("Option LogCollectOAIUE ignored")
|
||||||
HELP.GenericHelp(CONST.Version)
|
|
||||||
sys.exit('Insufficient Parameter')
|
|
||||||
CiTestObj.LogCollectOAIUE()
|
|
||||||
elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
|
elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
|
||||||
count = 0
|
count = 0
|
||||||
foundCount = 0
|
foundCount = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user