@@ -155,7 +155,7 @@ properties ([
155155 parameters([
156156 choice (name : ' Distro' , choices : ' trusty\n xenial\n bionic\n focal\n groovy\n hirsute' ,
157157 description : ' trusty - 14.04 validation <br> xenial - 16.04 validation <br> bionic - 18.04 validation <br> focal - 20.04 validation <br> groovy - 20.10 validation <br> hirsute - 21.04 validation ' ),
158- choice (name : ' KernelType' , choices : ' linux-azure\n linux-azure-edge\n linux-image-azure-lts-18.04\n esm\n linux-azure-fips\n linux-image-azure-lts-20.04\n ' ,
158+ choice (name : ' KernelType' , choices : ' linux-azure\n linux-azure-edge\n linux-image-azure-lts-18.04\n esm\n linux-azure-fips\n linux-image-azure-lts-20.04\n linux-image-azure-fde \ n' ,
159159 description : ' linux-azure - latest proposed linux-azure kernel validation <br> linux-azure-edge - latest proposed linux-azure-edge kernel validation' ),
160160 string(name : ' KernelVersion' , defaultValue : " " , description : ' The exact kernel version to be tested. Example: 5.0.0.1010.9. If left empty, the latest kernel version for the selected distro/kernel type will be used.' ),
161161 choice (name : ' ValidationAzure' , choices : ' yes\n no' ,
@@ -232,6 +232,9 @@ if (env.KernelType == "linux-azure-fips") {
232232if (env.KernelType == " linux-image-azure-lts-20.04" ) {
233233 env. KERNEL_TYPE = " linux-image-azure-lts-20.04"
234234}
235+ if (env.KernelType == " linux-image-azure-fde" ) {
236+ env. KERNEL_TYPE = " linux-image-azure-fde"
237+ }
235238
236239env. START_DATE = new java.sql.Timestamp (new Date (). getTime())
237240env. END_DATE = " "
@@ -333,6 +336,19 @@ if (env.ValidationAzure == 'yes') {
333336 " -ExitWithZero -ForceCustom" +
334337 " ${ test_cmd} "
335338 )
339+ } else if (' ${KERNEL_TYPE}' == " linux-image-azure-fde" ) {
340+ echo " Run-LisaV2.ps1 -TestPlatform 'Azure' -ARMImageName '${ ARM_GEN2_DISTRO} ' -RGIdentifier '${ AZURE_ID} ' -TestLocation '${ AZURE_LOCATION} ' -CustomKernel '${ KERNEL_TYPE} ' ${ test_cmd} -XMLSecretFile '${ Azure_Secrets_File} '"
341+ RunPowershellCommand (" .\\ Run-LisaV2.ps1" +
342+ " -TestLocation '${ AZURE_LOCATION} '" +
343+ " -RGIdentifier '${ AZURE_ID} '" +
344+ " -TestPlatform 'Azure'" +
345+ " -CustomKernel '${ KERNEL_TYPE} '" +
346+ " -ARMImageName '${ ARM_GEN2_DISTRO} '" +
347+ " -XMLSecretFile '${ Azure_Secrets_File} '" +
348+ " -EnableTelemetry" +
349+ " -ExitWithZero -ForceCustom" +
350+ " ${ test_cmd} "
351+ )
336352 } else {
337353 echo " Run-LisaV2.ps1 -TestPlatform 'Azure' -ARMImageName '${ ARM_DISTRO} ' -RGIdentifier '${ AZURE_ID} ' -TestLocation '${ AZURE_LOCATION} ' -CustomKernel '${ KERNEL_TYPE} ' ${ test_cmd} -XMLSecretFile '${ Azure_Secrets_File} '"
338354 RunPowershellCommand (" .\\ Run-LisaV2.ps1" +
@@ -506,20 +522,54 @@ if (env.PerformanceAzure == "yes") {
506522 } catch (exc) {
507523 println exc
508524 }
525+ def ARM_GEN2_DISTRO = " "
526+ script {
527+ if (" ${ env.distro} " == " bionic" ) {
528+ ARM_GEN2_DISTRO = " Canonical UbuntuServer 18_04-lts-gen2 latest"
529+ }
530+ if (" ${ env.distro} " == " xenial" ) {
531+ ARM_GEN2_DISTRO = " Canonical UbuntuServer 16_04-lts-gen2 latest"
532+ }
533+ if (" ${ env.distro} " == " focal" ) {
534+ ARM_GEN2_DISTRO = " canonical 0001-com-ubuntu-server-focal 20_04-lts-gen2 latest"
535+ }
536+ if (" ${ env.distro} " == " groovy" ) {
537+ ARM_GEN2_DISTRO = " canonical 0001-com-ubuntu-server-groovy 20_10-gen2 latest"
538+ }
539+ if (" ${ env.distro} " == " hirsute" ) {
540+ ARM_GEN2_DISTRO = " canonical 0001-com-ubuntu-server-hirsute 21_04-gen2 latest"
541+ }
542+ }
509543
510- echo " Run-LisaV2.ps1 -TestPlatform 'Azure' -ARMImageName '${ ARM_DISTRO} ' -RGIdentifier '${ AZURE_ID} ' -TestLocation '${ AZURE_LOCATION_DEFAULT} ' -CustomKernel '${ KERNEL_TYPE} ' ${ test_cmd} -XMLSecretFile '${ Azure_Secrets_File} '"
511- RunPowershellCommand (" .\\ Run-LisaV2.ps1" +
512- " -TestLocation '${ AZURE_LOCATION_DEFAULT} '" +
513- " -RGIdentifier '${ AZURE_ID} '" +
514- " -TestPlatform 'Azure'" +
515- " -CustomKernel '${ KERNEL_TYPE} '" +
516- " -ARMImageName '${ ARM_DISTRO} '" +
517- " -XMLSecretFile '${ Azure_Secrets_File} '" +
518- " -EnableTelemetry" +
519- " -ExitWithZero -ForceCustom" +
520- " -ResultDBTestTag '${ env.distro} _${ env.KernelType} _${ env.BUILD_NUMBER} '" +
521- " ${ test_cmd} "
522- )
544+ if (' ${KERNEL_TYPE}' == " linux-image-azure-fde" ) {
545+ echo " Run-LisaV2.ps1 -TestPlatform 'Azure' -ARMImageName '${ ARM_GEN2_DISTRO} ' -RGIdentifier '${ AZURE_ID} ' -TestLocation '${ AZURE_LOCATION_DEFAULT} ' -CustomKernel '${ KERNEL_TYPE} ' ${ test_cmd} -XMLSecretFile '${ Azure_Secrets_File} '"
546+ RunPowershellCommand (" .\\ Run-LisaV2.ps1" +
547+ " -TestLocation '${ AZURE_LOCATION_DEFAULT} '" +
548+ " -RGIdentifier '${ AZURE_ID} '" +
549+ " -TestPlatform 'Azure'" +
550+ " -CustomKernel '${ KERNEL_TYPE} '" +
551+ " -ARMImageName '${ ARM_GEN2_DISTRO} '" +
552+ " -XMLSecretFile '${ Azure_Secrets_File} '" +
553+ " -EnableTelemetry" +
554+ " -ExitWithZero -ForceCustom" +
555+ " -ResultDBTestTag '${ env.distro} _${ env.KernelType} _${ env.BUILD_NUMBER} '" +
556+ " ${ test_cmd} "
557+ )
558+ } else {
559+ echo " Run-LisaV2.ps1 -TestPlatform 'Azure' -ARMImageName '${ ARM_DISTRO} ' -RGIdentifier '${ AZURE_ID} ' -TestLocation '${ AZURE_LOCATION_DEFAULT} ' -CustomKernel '${ KERNEL_TYPE} ' ${ test_cmd} -XMLSecretFile '${ Azure_Secrets_File} '"
560+ RunPowershellCommand (" .\\ Run-LisaV2.ps1" +
561+ " -TestLocation '${ AZURE_LOCATION_DEFAULT} '" +
562+ " -RGIdentifier '${ AZURE_ID} '" +
563+ " -TestPlatform 'Azure'" +
564+ " -CustomKernel '${ KERNEL_TYPE} '" +
565+ " -ARMImageName '${ ARM_DISTRO} '" +
566+ " -XMLSecretFile '${ Azure_Secrets_File} '" +
567+ " -EnableTelemetry" +
568+ " -ExitWithZero -ForceCustom" +
569+ " -ResultDBTestTag '${ env.distro} _${ env.KernelType} _${ env.BUILD_NUMBER} '" +
570+ " ${ test_cmd} "
571+ )
572+ }
523573 archiveArtifacts artifacts : ' *-TestLogs.zip' , allowEmptyArchive : true
524574 junit testResults : " Report\\ *-junit.xml" , allowEmptyResults : true
525575
@@ -565,6 +615,8 @@ node ("meta_slave") {
565615 version_identifier = " _azure_fips"
566616 } else if (env.KernelType == " linux-image-azure-lts-20.04" ) {
567617 version_identifier = " _azure_lts_2004"
618+ } else if (env.KernelType == " linux-image-azure-fde" ) {
619+ version_identifier = " _azure_fde"
568620 }
569621 def kernels_info = " "
570622 try {
0 commit comments