Commit db104f19 authored by Boris Djalal's avatar Boris Djalal

Cleanup.

Signed-off-by: default avatarBoris Djalal <boris.djalal@eurecom.fr>
parent 71c1e46e
...@@ -97,8 +97,6 @@ pipeline { ...@@ -97,8 +97,6 @@ pipeline {
echo " Repository -- ${GIT_URL}" echo " Repository -- ${GIT_URL}"
echo " Branch -- ${GIT_BRANCH}" echo " Branch -- ${GIT_BRANCH}"
echo " Commit -- ${GIT_COMMIT}" echo " Commit -- ${GIT_COMMIT}"
sh "git log -n1"
//eNB_Repository = ${GIT_URL}
} }
} }
} }
...@@ -195,12 +193,6 @@ pipeline { ...@@ -195,12 +193,6 @@ pipeline {
echo "Some parameters are missing" echo "Some parameters are missing"
sh "./ci-scripts/fail.sh" sh "./ci-scripts/fail.sh"
} }
// The following parameters are kept not to break the current main.py command line and code.
// They should be removed in the future.
//if (params.ADB_IPAddress == null) {
// params.ADB_IPAddress = "none"
//}
//echo "params.ADB_IPAddress = ${params.ADB_IPAddress}"
} }
} }
} }
...@@ -209,22 +201,6 @@ pipeline { ...@@ -209,22 +201,6 @@ pipeline {
steps { steps {
script { script {
dir ('ci-scripts') { dir ('ci-scripts') {
echo "\u2705 \u001B[32m${testStageName}\u001B[0m"
echo "params.eNB_Credentials = ${params.eNB_Credentials}"
echo "params.UE_Credentials = ${params.UE_Credentials}"
echo "eNB_Repository = ${eNB_Repository}"
echo "eNB_Branch= ${eNB_Branch}"
echo "eNB_CommitID= ${eNB_CommitID}"
echo "eNB_AllowMergeRequestProcess= ${eNB_AllowMergeRequestProcess}"
echo "params.ADB_IPAddress= ${params.ADB_IPAddress}"
echo "ADB_IPAddress= ${ADB_IPAddress}"
echo "ADB_Username = ${ADB_Username}"
echo "ADB_Password = ${ADB_Password}"
echo "params.eNB_IPAddress = ${params.eNB_IPAddress}"
echo "params.eNB_SourceCodePath = ${params.eNB_SourceCodePath}"
echo "ADB_IPAddress = ${ADB_IPAddress}"
echo "EPC_IPAddress = ${EPC_IPAddress}"
echo "BUILD_STAGE_STATUS = ${BUILD_STAGE_STATUS}"
withCredentials([ withCredentials([
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.eNB_Credentials}", usernameVariable: 'eNB_Username', passwordVariable: 'eNB_Password'], [$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.eNB_Credentials}", usernameVariable: 'eNB_Username', passwordVariable: 'eNB_Password'],
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password'] [$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password']
...@@ -234,8 +210,6 @@ pipeline { ...@@ -234,8 +210,6 @@ pipeline {
for (xmlFile in myXmlTestSuite) { for (xmlFile in myXmlTestSuite) {
if (fileExists(xmlFile)) { if (fileExists(xmlFile)) {
try { try {
echo "The test will be executed here. The command would be:"
echo "sh \"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --UEIPAddress=${params.eNB_IPAddress} --UEUserName=${eNB_Username} --UEPassword=${eNB_Password} --eNBBranch=${eNB_Branch} --eNBSourceCodePath=${params.eNB_SourceCodePath} --UESourceCodePath=${params.eNB_SourceCodePath} --eNBRepository=${eNB_Repository} --eNBCommitID=${eNB_CommitID} --ADBIPAddress=${ADB_IPAddress} --EPCIPAddress=${EPC_IPAddress} --XMLTestFile=${xmlFile}\""
sh "python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --UEIPAddress=${params.eNB_IPAddress} --UEUserName=${eNB_Username} --UEPassword=${eNB_Password} --eNBBranch=${eNB_Branch} --eNBSourceCodePath=${params.eNB_SourceCodePath} --UESourceCodePath=${params.eNB_SourceCodePath} --eNBRepository=${eNB_Repository} --eNBCommitID=${eNB_CommitID} --ADBIPAddress=${ADB_IPAddress} --EPCIPAddress=${EPC_IPAddress} --XMLTestFile=${xmlFile}" sh "python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --UEIPAddress=${params.eNB_IPAddress} --UEUserName=${eNB_Username} --UEPassword=${eNB_Password} --eNBBranch=${eNB_Branch} --eNBSourceCodePath=${params.eNB_SourceCodePath} --UESourceCodePath=${params.eNB_SourceCodePath} --eNBRepository=${eNB_Repository} --eNBCommitID=${eNB_CommitID} --ADBIPAddress=${ADB_IPAddress} --EPCIPAddress=${EPC_IPAddress} --XMLTestFile=${xmlFile}"
} catch (Exception e) { } catch (Exception e) {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
...@@ -336,11 +310,6 @@ echo "sh \"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress ...@@ -336,11 +310,6 @@ echo "sh \"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress
if(fileExists("ue.log.${env.BUILD_ID}.zip")) { if(fileExists("ue.log.${env.BUILD_ID}.zip")) {
archiveArtifacts "ue.log.${env.BUILD_ID}.zip" archiveArtifacts "ue.log.${env.BUILD_ID}.zip"
} }
if(fileExists("ci-scripts/test_results.html")) {
sh "mv ci-scripts/test_results.html test_results-${JOB_NAME}.html"
sh "sed -i -e 's#TEMPLATE_JOB_NAME#${JOB_NAME}#' -e 's@build #TEMPLATE_BUILD_ID@build #${BUILD_ID}@' -e 's#Build-ID: TEMPLATE_BUILD_ID#Build-ID: <a href=\"${BUILD_URL}\">${BUILD_ID}</a>#' -e 's#TEMPLATE_STAGE_NAME#${testStageName}#' test_results-${JOB_NAME}.html"
archiveArtifacts "test_results-${JOB_NAME}.html"
}
} }
} }
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<htmlTabName>run-OAI-gNB-NR-UE-USRP</htmlTabName> <htmlTabName>run-OAI-gNB-NR-UE-USRP</htmlTabName>
<htmlTabIcon>tasks</htmlTabIcon> <htmlTabIcon>tasks</htmlTabIcon>
<TestCaseRequestedList> <TestCaseRequestedList>
090101 000001 090102 000001 090103 090109 090101 000001 090102 000001 090108 090109
</TestCaseRequestedList> </TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList> <TestCaseExclusionList></TestCaseExclusionList>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<air_interface>NR</air_interface> <air_interface>NR</air_interface>
</testCase> </testCase>
<testCase id="090103"> <testCase id="090108">
<class>Terminate_OAI_UE</class> <class>Terminate_OAI_UE</class>
<desc>Terminate NR UE</desc> <desc>Terminate NR UE</desc>
<air_interface>NR</air_interface> <air_interface>NR</air_interface>
......
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
<htmlTabName>Build</htmlTabName> <htmlTabName>Build</htmlTabName>
<htmlTabIcon>wrench</htmlTabIcon> <htmlTabIcon>wrench</htmlTabIcon>
<TestCaseRequestedList> <TestCaseRequestedList>
090101 010101
</TestCaseRequestedList> </TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList> <TestCaseExclusionList></TestCaseExclusionList>
<testCase id="090101"> <testCase id="010101">
<mode>TesteNB</mode> <mode>TesteNB</mode>
<class>Build_eNB</class> <class>Build_eNB</class>
<desc>Build gNB (USRP)</desc> <desc>Build gNB (USRP)</desc>
......
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
<htmlTabName>Build</htmlTabName> <htmlTabName>Build</htmlTabName>
<htmlTabIcon>wrench</htmlTabIcon> <htmlTabIcon>wrench</htmlTabIcon>
<TestCaseRequestedList> <TestCaseRequestedList>
090102 010102
</TestCaseRequestedList> </TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList> <TestCaseExclusionList></TestCaseExclusionList>
<testCase id="090102"> <testCase id="010102">
<mode>TestUE</mode> <mode>TestUE</mode>
<class>Build_OAI_UE</class> <class>Build_OAI_UE</class>
<desc>Build NR UE (USRP)</desc> <desc>Build NR UE (USRP)</desc>
......
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