From cafcfa4a8e20952d640a2cde76df5e308a6ad871 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Mon, 16 Feb 2026 13:07:01 +0500 Subject: [PATCH 01/19] [RA-7032] Add RHEL 10 --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a2272b6c..16ac2f30 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,8 @@ def supported_fs = [ 'ext2', 'ext3', 'ext4', 'xfs'] def map_rpm_distro = [ "rhel7" : "maipo", "rhel8" : "ootpa", - "rhel9" : "plow" + "rhel9" : "plow", + "rhel10": "coughlan", ] def map_deb_distro = [ @@ -62,7 +63,7 @@ pipeline values 'debian10', 'debian11', 'debian12', 'debian13', 'alma8', 'alma9', 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', - 'rhel7', 'rhel8', 'rhel9', + 'rhel7', 'rhel8', 'rhel9', 'rhel10', 'fedora44' } } From 58bee288d9c54160e13346c6a65bdb2e8768487b Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Wed, 18 Feb 2026 16:58:53 +0500 Subject: [PATCH 02/19] [RA-7032] Make fedora44 optional --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 16ac2f30..5f6de923 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,6 +31,15 @@ pipeline { agent none + parameters + { + booleanParam( + name: 'BUILD_FEDORA44', + defaultValue: false, + description: 'Enable Fedora 44 build' + ) + } + options { buildDiscarder(logRotator(numToKeepStr: '10')) @@ -67,6 +76,21 @@ pipeline 'fedora44' } } + excludes + { + exclude + { + axis + { + name 'DISTRO' + values 'fedora44' + } + when + { + expression { !params.BUILD_FEDORA44 } + } + } + } agent { label "${DISTRO}_template_label" } From 381ed861e092b8e58e2e1301754d39966f5f7728 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Wed, 18 Feb 2026 17:05:50 +0500 Subject: [PATCH 03/19] [RA-7032] Make fedora44 optional --- Jenkinsfile | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f6de923..38da7316 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,13 @@ def map_deb_distro = [ "debian13" : "trixie-agent", ] +def distros = [ + 'debian10', 'debian11', 'debian12', 'debian13', + 'alma8', 'alma9', + 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', + 'rhel7', 'rhel8', 'rhel9', 'rhel10' +] + def test_disks = [:] pipeline @@ -62,6 +69,14 @@ pipeline } } + script + { + if (params.BUILD_FEDORA44) + { + distros << 'fedora44' + } + } + matrix { axes @@ -69,26 +84,7 @@ pipeline axis { name 'DISTRO' - values 'debian10', 'debian11', 'debian12', 'debian13', - 'alma8', 'alma9', - 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', - 'rhel7', 'rhel8', 'rhel9', 'rhel10', - 'fedora44' - } - } - excludes - { - exclude - { - axis - { - name 'DISTRO' - values 'fedora44' - } - when - { - expression { !params.BUILD_FEDORA44 } - } + values distros } } agent { From 4c1a306da58e3d94247ba4a76b2bed008a46d9bb Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Wed, 18 Feb 2026 17:16:12 +0500 Subject: [PATCH 04/19] [RA-7032] Make fedora44 optional --- Jenkinsfile | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 38da7316..f175e48d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,8 +9,7 @@ def supported_fs = [ 'ext2', 'ext3', 'ext4', 'xfs'] def map_rpm_distro = [ "rhel7" : "maipo", "rhel8" : "ootpa", - "rhel9" : "plow", - "rhel10": "coughlan", + "rhel9" : "plow" ] def map_deb_distro = [ @@ -25,13 +24,6 @@ def map_deb_distro = [ "debian13" : "trixie-agent", ] -def distros = [ - 'debian10', 'debian11', 'debian12', 'debian13', - 'alma8', 'alma9', - 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', - 'rhel7', 'rhel8', 'rhel9', 'rhel10' -] - def test_disks = [:] pipeline @@ -69,14 +61,6 @@ pipeline } } - script - { - if (params.BUILD_FEDORA44) - { - distros << 'fedora44' - } - } - matrix { axes @@ -84,7 +68,19 @@ pipeline axis { name 'DISTRO' - values distros + values 'debian10', 'debian11', 'debian12', 'debian13', + 'alma8', 'alma9', + 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', + 'rhel7', 'rhel8', 'rhel9', + 'fedora44' + } + } + when + { + anyOf + { + expression { env.DISTRO != 'fedora44' } + expression { params.BUILD_FEDORA44 } } } agent { From 63ec3b7d69d1d90322542c3ada56fe9076842350 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Wed, 18 Feb 2026 18:01:04 +0500 Subject: [PATCH 05/19] [RA-7032] Make fedora44 optional --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f175e48d..3b83b2d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -71,7 +71,7 @@ pipeline values 'debian10', 'debian11', 'debian12', 'debian13', 'alma8', 'alma9', 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', - 'rhel7', 'rhel8', 'rhel9', + 'rhel7', 'rhel8', 'rhel9', 'rhel10', 'fedora44' } } From 1a1b9f363302bce144083a300d3f5715f0f7c05b Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 13:58:56 +0500 Subject: [PATCH 06/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b83b2d1..580f4a97 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,15 +30,6 @@ pipeline { agent none - parameters - { - booleanParam( - name: 'BUILD_FEDORA44', - defaultValue: false, - description: 'Enable Fedora 44 build' - ) - } - options { buildDiscarder(logRotator(numToKeepStr: '10')) @@ -93,8 +84,15 @@ pipeline when { expression { env.DISTRO == 'fedora44' } } steps { - updateKernelWithReboot() - checkout scm + script { + try { + updateKernelWithReboot() + checkout scm + } + catch (e) { + echo "Fedora 44 failed, continue the rest" + } + } } } stage('Publish packages') From 659fcb97997d08cc544b94215dfbf2662d32a7b6 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 14:31:55 +0500 Subject: [PATCH 07/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 580f4a97..615b83a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,14 +66,6 @@ pipeline 'fedora44' } } - when - { - anyOf - { - expression { env.DISTRO != 'fedora44' } - expression { params.BUILD_FEDORA44 } - } - } agent { label "${DISTRO}_template_label" } From 6393ce1f2b1a7e457ecde986c4ffc0b53c52f61d Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 15:11:51 +0500 Subject: [PATCH 08/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 615b83a2..074ecb1f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -109,11 +109,21 @@ pipeline { steps { - script { test_disks[env.DISTRO] = getTestDisks() } - lock(label: 'elastio-vmx', quantity: 1, resource : null) + script { - sh "sudo make" - sh "sudo make install" + try + { + test_disks[env.DISTRO] = getTestDisks() + lock(label: 'elastio-vmx', quantity: 1, resource : null) + { + sh "sudo make" + sh "sudo make install" + } + } + catch (e) + { + echo "Fedora 44 failed, continue the rest" + } } } } From 76ee38ad08acdd0415586c8b5f1f818256cb04bf Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 15:58:01 +0500 Subject: [PATCH 09/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 074ecb1f..cb909ddf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,14 @@ pipeline 'fedora44' } } + when + { + anyOf + { + expression { env.DISTRO != 'fedora44' } + expression { params.BUILD_FEDORA44 } + } + } agent { label "${DISTRO}_template_label" } @@ -76,14 +84,10 @@ pipeline when { expression { env.DISTRO == 'fedora44' } } steps { - script { - try { - updateKernelWithReboot() - checkout scm - } - catch (e) { - echo "Fedora 44 failed, continue the rest" - } + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') + { + updateKernelWithReboot() + checkout scm } } } @@ -109,21 +113,11 @@ pipeline { steps { - script + script { test_disks[env.DISTRO] = getTestDisks() } + lock(label: 'elastio-vmx', quantity: 1, resource : null) { - try - { - test_disks[env.DISTRO] = getTestDisks() - lock(label: 'elastio-vmx', quantity: 1, resource : null) - { - sh "sudo make" - sh "sudo make install" - } - } - catch (e) - { - echo "Fedora 44 failed, continue the rest" - } + sh "sudo make" + sh "sudo make install" } } } From 1de4e48acd6b7b74a4421fdba3bf886c2989eaa9 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 16:14:03 +0500 Subject: [PATCH 10/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cb909ddf..41ebc83b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,14 +66,6 @@ pipeline 'fedora44' } } - when - { - anyOf - { - expression { env.DISTRO != 'fedora44' } - expression { params.BUILD_FEDORA44 } - } - } agent { label "${DISTRO}_template_label" } From 23aff7ce9d1900b7faed54b535b3b1c6dc92962c Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 17:00:13 +0500 Subject: [PATCH 11/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 41ebc83b..5dd6fe89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,11 +76,16 @@ pipeline when { expression { env.DISTRO == 'fedora44' } } steps { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') + try { updateKernelWithReboot() checkout scm } + catch (e) + { + currentBuild.result = 'SUCCESS' + error("Update kernel failed. Stopping fedora44 pipeline") + } } } stage('Publish packages') From 7565bf917e65a2ec5c34e2f4778862ec79815731 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 17:05:33 +0500 Subject: [PATCH 12/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5dd6fe89..5ef5843d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,15 +76,18 @@ pipeline when { expression { env.DISTRO == 'fedora44' } } steps { - try + script { - updateKernelWithReboot() - checkout scm - } - catch (e) - { - currentBuild.result = 'SUCCESS' - error("Update kernel failed. Stopping fedora44 pipeline") + try + { + updateKernelWithReboot() + checkout scm + } + catch (e) + { + currentBuild.result = 'SUCCESS' + error("Update kernel failed. Stopping fedora44 pipeline") + } } } } From eb18c66112d8a5a9539b69c170384c76f0c15797 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Thu, 19 Feb 2026 17:41:53 +0500 Subject: [PATCH 13/19] [RA-7032] Do not fail pipeline if fedora44 was failed --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5ef5843d..3c758e71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,7 @@ pipeline timestamps () disableConcurrentBuilds abortPrevious: true timeout(time: 6, unit: 'HOURS') + skipStagesAfterUnstable() } stages { @@ -86,7 +87,7 @@ pipeline catch (e) { currentBuild.result = 'SUCCESS' - error("Update kernel failed. Stopping fedora44 pipeline") + unstable("Update kernel failed. Stopping fedora44 pipeline") } } } From e3de1ddfb39edda4f9e538eca747d64a51209819 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Fri, 20 Feb 2026 02:22:49 +0500 Subject: [PATCH 14/19] [RA-7032] Test catchError + use current result --- Jenkinsfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c758e71..ae3874d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,6 @@ pipeline timestamps () disableConcurrentBuilds abortPrevious: true timeout(time: 6, unit: 'HOURS') - skipStagesAfterUnstable() } stages { @@ -79,15 +78,15 @@ pipeline { script { - try + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { updateKernelWithReboot() checkout scm } - catch (e) + + if (currentBuild.currentResult == 'FAILURE') { - currentBuild.result = 'SUCCESS' - unstable("Update kernel failed. Stopping fedora44 pipeline") + error("Stop fedora44 pipeline") } } } From 26788122dbee4575da9b54796a631b980e61f5c9 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Fri, 20 Feb 2026 17:37:34 +0500 Subject: [PATCH 15/19] [RA-7032] Use unstable for fedora44 --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ae3874d7..3c758e71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,7 @@ pipeline timestamps () disableConcurrentBuilds abortPrevious: true timeout(time: 6, unit: 'HOURS') + skipStagesAfterUnstable() } stages { @@ -78,15 +79,15 @@ pipeline { script { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') + try { updateKernelWithReboot() checkout scm } - - if (currentBuild.currentResult == 'FAILURE') + catch (e) { - error("Stop fedora44 pipeline") + currentBuild.result = 'SUCCESS' + unstable("Update kernel failed. Stopping fedora44 pipeline") } } } From ea59733300b3cb1cd497460f5c1d57369b7d7f50 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Mon, 23 Feb 2026 13:25:19 +0500 Subject: [PATCH 16/19] [RA-7032] Manual skip all stages instead of UNSTABLE --- Jenkinsfile | 46 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c758e71..3af09bcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,7 +87,7 @@ pipeline catch (e) { currentBuild.result = 'SUCCESS' - unstable("Update kernel failed. Stopping fedora44 pipeline") + env.SKIP_REST = "true" } } } @@ -95,6 +95,7 @@ pipeline stage('Publish packages') { when { + expression { env.SKIP_REST != "true" } not { changeRequest() } anyOf { expression { map_deb_distro[env.DISTRO] != null } @@ -112,6 +113,9 @@ pipeline stage('Build kernel module') { + when { + expression { env.SKIP_REST != "true" } + } steps { script { test_disks[env.DISTRO] = getTestDisks() } @@ -124,19 +128,43 @@ pipeline } - stage('Run tests (loop device)') { steps { runTests(supported_fs, "") } } - stage('Run tests on LVM (loop device)') { steps { runTests(supported_fs, "--lvm") } } - stage('Run tests on RAID (loop device)') { steps { runTests(supported_fs, "--raid") } } + stage('Run tests (loop device)') + { + when { + expression { env.SKIP_REST != "true" } + } + steps { runTests(supported_fs, "") } + } + stage('Run tests on LVM (loop device)') + { + when { + expression { env.SKIP_REST != "true" } + } + steps { runTests(supported_fs, "--lvm") } + } + stage('Run tests on RAID (loop device)') + { + when { + expression { env.SKIP_REST != "true" } + } + steps { runTests(supported_fs, "--raid") } + } stage('Run tests (qcow2 disk)') { - when { branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } + when { + expression { env.SKIP_REST != "true" } + branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" + } steps { runTests(supported_fs, "-d ${test_disks[env.DISTRO][0]}1") } } stage('Run tests on LVM (qcow2 disks)') { - when { branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } + when { + expression { env.SKIP_REST != "true" } + branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" + } steps { runTests(supported_fs, " -d ${test_disks[env.DISTRO][0]} -d ${test_disks[env.DISTRO][1]} --lvm") } } @@ -146,6 +174,7 @@ pipeline // mount of the raid1 device with XFS even if elastio-snap is not loaded. See https://bugzilla.redhat.com/show_bug.cgi?id=1111290 when { + expression { env.SKIP_REST != "true" } branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" expression { env.DISTRO != 'debian8' } } @@ -153,7 +182,10 @@ pipeline } stage('Run tests multipart (qcow2 disks)') { - when { branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } + when { + expression { env.SKIP_REST != "true" } + branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" + } steps { runTests(supported_fs, "-d ${test_disks[env.DISTRO][0]} -t test_multipart") } } } From dc645eb4664c01757130f1ceead63fa2dd0a5948 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Mon, 23 Feb 2026 14:16:02 +0500 Subject: [PATCH 17/19] [RA-7032] Fix skip for fedora only + fail fedora branch --- Jenkinsfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3af09bcd..511817de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,6 @@ pipeline timestamps () disableConcurrentBuilds abortPrevious: true timeout(time: 6, unit: 'HOURS') - skipStagesAfterUnstable() } stages { @@ -79,14 +78,13 @@ pipeline { script { - try + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { updateKernelWithReboot() checkout scm } - catch (e) + if (currentBuild.currentResult == 'FAILURE') { - currentBuild.result = 'SUCCESS' env.SKIP_REST = "true" } } @@ -95,7 +93,7 @@ pipeline stage('Publish packages') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } not { changeRequest() } anyOf { expression { map_deb_distro[env.DISTRO] != null } @@ -114,7 +112,7 @@ pipeline stage('Build kernel module') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } } steps { @@ -131,21 +129,21 @@ pipeline stage('Run tests (loop device)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } } steps { runTests(supported_fs, "") } } stage('Run tests on LVM (loop device)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } } steps { runTests(supported_fs, "--lvm") } } stage('Run tests on RAID (loop device)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } } steps { runTests(supported_fs, "--raid") } } @@ -153,7 +151,7 @@ pipeline stage('Run tests (qcow2 disk)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } steps { runTests(supported_fs, "-d ${test_disks[env.DISTRO][0]}1") } @@ -162,7 +160,7 @@ pipeline stage('Run tests on LVM (qcow2 disks)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } steps { runTests(supported_fs, " -d ${test_disks[env.DISTRO][0]} -d ${test_disks[env.DISTRO][1]} --lvm") } @@ -174,7 +172,7 @@ pipeline // mount of the raid1 device with XFS even if elastio-snap is not loaded. See https://bugzilla.redhat.com/show_bug.cgi?id=1111290 when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" expression { env.DISTRO != 'debian8' } } @@ -183,7 +181,7 @@ pipeline stage('Run tests multipart (qcow2 disks)') { when { - expression { env.SKIP_REST != "true" } + expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } branch pattern: '^(build|release|develop|master|staging).*', comparator: "REGEXP" } steps { runTests(supported_fs, "-d ${test_disks[env.DISTRO][0]} -t test_multipart") } From e9045ace3cb3619eff8d6a9c77b5aa6989cfddee Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Mon, 23 Feb 2026 17:33:34 +0500 Subject: [PATCH 18/19] [RA-7032] Throw error to fail fedora pipe and skip next steps --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 511817de..95fa4011 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,12 +80,16 @@ pipeline { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - updateKernelWithReboot() - checkout scm - } - if (currentBuild.currentResult == 'FAILURE') - { - env.SKIP_REST = "true" + try + { + updateKernelWithReboot() + checkout scm + } + catch (e) + { + env.SKIP_REST = "true" + throw e + } } } } From 7547eb84b3d04ffec4e1f350b571c7abb3fbba47 Mon Sep 17 00:00:00 2001 From: aabirov1 Date: Mon, 23 Feb 2026 18:40:50 +0500 Subject: [PATCH 19/19] [RA-7032] Run fedora tests only if build was successful --- Jenkinsfile | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 95fa4011..201959ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,16 +80,8 @@ pipeline { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - try - { - updateKernelWithReboot() - checkout scm - } - catch (e) - { - env.SKIP_REST = "true" - throw e - } + updateKernelWithReboot() + checkout scm } } } @@ -97,7 +89,6 @@ pipeline stage('Publish packages') { when { - expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } not { changeRequest() } anyOf { expression { map_deb_distro[env.DISTRO] != null } @@ -115,17 +106,29 @@ pipeline stage('Build kernel module') { - when { - expression { !(env.DISTRO == 'fedora44' && env.SKIP_REST == "true") } - } steps { - script { test_disks[env.DISTRO] = getTestDisks() } - lock(label: 'elastio-vmx', quantity: 1, resource : null) + script { - sh "sudo make" - sh "sudo make install" + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') + { + try + { + script { test_disks[env.DISTRO] = getTestDisks() } + lock(label: 'elastio-vmx', quantity: 1, resource : null) + { + sh "sudo make" + sh "sudo make install" + } + } + catch (e) + { + env.SKIP_REST = "true" + throw e + } + } } + } }