diff --git a/ci-scripts/test-boris-Jenkinsfile b/ci-scripts/test-boris-Jenkinsfile index e71d59da5e6b8c0f12fb10c426582049913d1d5e..2b589ad88b8ab4427f9139dc6eb5f52b42b07088 100644 --- a/ci-scripts/test-boris-Jenkinsfile +++ b/ci-scripts/test-boris-Jenkinsfile @@ -97,8 +97,6 @@ pipeline { echo " Repository -- ${GIT_URL}" echo " Branch -- ${GIT_BRANCH}" echo " Commit -- ${GIT_COMMIT}" - sh "git log -n1" - //eNB_Repository = ${GIT_URL} } } } @@ -195,12 +193,6 @@ pipeline { echo "Some parameters are missing" 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 { steps { script { 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([ [$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.eNB_Credentials}", usernameVariable: 'eNB_Username', passwordVariable: 'eNB_Password'], [$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.UE_Credentials}", usernameVariable: 'UE_Username', passwordVariable: 'UE_Password'] @@ -234,8 +210,6 @@ pipeline { for (xmlFile in myXmlTestSuite) { if (fileExists(xmlFile)) { 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}" } catch (Exception e) { currentBuild.result = 'FAILURE' @@ -336,11 +310,6 @@ echo "sh \"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress if(fileExists("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" - } } } } diff --git a/ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml b/ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml index 645b35f64a59ed245e4547c32d6b07be64d18e10..6b5cf7273bc2868073d0b24b8d8058fed2f952f4 100644 --- a/ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml +++ b/ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml @@ -26,7 +26,7 @@ <htmlTabName>run-OAI-gNB-NR-UE-USRP</htmlTabName> <htmlTabIcon>tasks</htmlTabIcon> <TestCaseRequestedList> -090101 000001 090102 000001 090103 090109 +090101 000001 090102 000001 090108 090109 </TestCaseRequestedList> <TestCaseExclusionList></TestCaseExclusionList> @@ -50,7 +50,7 @@ <air_interface>NR</air_interface> </testCase> - <testCase id="090103"> + <testCase id="090108"> <class>Terminate_OAI_UE</class> <desc>Terminate NR UE</desc> <air_interface>NR</air_interface> diff --git a/ci-scripts/xml_files/gnb_usrp_build.xml b/ci-scripts/xml_files/gnb_usrp_build.xml index 7dd9ceeb303171e87b7a6016acb9bc640d3c1025..0bc989cb893283db1531b39f8eb4bafd4d2ae5cd 100644 --- a/ci-scripts/xml_files/gnb_usrp_build.xml +++ b/ci-scripts/xml_files/gnb_usrp_build.xml @@ -25,11 +25,11 @@ <htmlTabName>Build</htmlTabName> <htmlTabIcon>wrench</htmlTabIcon> <TestCaseRequestedList> -090101 +010101 </TestCaseRequestedList> <TestCaseExclusionList></TestCaseExclusionList> - <testCase id="090101"> + <testCase id="010101"> <mode>TesteNB</mode> <class>Build_eNB</class> <desc>Build gNB (USRP)</desc> diff --git a/ci-scripts/xml_files/nr_ue_usrp_build.xml b/ci-scripts/xml_files/nr_ue_usrp_build.xml index 8419f6467577c930fb1a497859de30fb2c234e51..0ce27b839bd41753fb436adc011f8c829952349e 100644 --- a/ci-scripts/xml_files/nr_ue_usrp_build.xml +++ b/ci-scripts/xml_files/nr_ue_usrp_build.xml @@ -25,11 +25,11 @@ <htmlTabName>Build</htmlTabName> <htmlTabIcon>wrench</htmlTabIcon> <TestCaseRequestedList> -090102 +010102 </TestCaseRequestedList> <TestCaseExclusionList></TestCaseExclusionList> - <testCase id="090102"> + <testCase id="010102"> <mode>TestUE</mode> <class>Build_OAI_UE</class> <desc>Build NR UE (USRP)</desc>