From 6edabc3c8ea21467516e84e43d4183eb94b6dade Mon Sep 17 00:00:00 2001 From: Anastasiya <82375995+anastasiyaig@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:23:13 +0300 Subject: [PATCH] ci: run E2E as soon as linux stage is complete (#16069) Co-authored-by: Siddarth Kumar --- ci/Jenkinsfile.combined | 46 +++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/ci/Jenkinsfile.combined b/ci/Jenkinsfile.combined index c4ea2aac9d..ca45e70fff 100644 --- a/ci/Jenkinsfile.combined +++ b/ci/Jenkinsfile.combined @@ -33,11 +33,34 @@ pipeline { stages { stage('Build') { parallel { - stage('Linux/x86_64') { steps { script { - linux_x86_64 = getArtifacts( - 'Linux', jenkins.Build('status-desktop/systems/linux/x86_64/package') - ) - } } } + stage('Linux/x86_64 and E2E') { + stages { + stage('Linux/x86_64') { + steps { + script { + linux_x86_64 = getArtifacts( + 'Linux', jenkins.Build('status-desktop/systems/linux/x86_64/package') + ) + } + } + } + stage('E2E') { + steps { + script { + linux_e2e = build( + job: 'status-desktop/systems/linux/x86_64/tests-e2e-new', + parameters: jenkins.mapToParams([ + BUILD_SOURCE: linux_x86_64.fullProjectName, + TESTRAIL_RUN_NAME: utils.pkgFilename(), + TEST_SCOPE_FLAG: utils.isReleaseBuild() ? '-m=critical' : '', + GIT_REF: env.BRANCH_NAME, + ]), + ) + } + } + } + } + } stage('Linux/x86_64/Nix') { steps { script { linux_x86_64_nix = getArtifacts( 'Linux', jenkins.Build('status-desktop/systems/linux/x86_64/package-nix') @@ -60,19 +83,6 @@ pipeline { } } } } } - stage('E2E') { - steps { script { - linux_e2e = build( - job: 'status-desktop/systems/linux/x86_64/tests-e2e-new', - parameters: jenkins.mapToParams([ - BUILD_SOURCE: linux_x86_64.fullProjectName, - TESTRAIL_RUN_NAME: utils.pkgFilename(), - TEST_SCOPE_FLAG: utils.isReleaseBuild() ? '-m=critical' : '', - GIT_REF: env.BRANCH_NAME, - ]), - ) - } } - } stage('Publish') { when { expression { params.PUBLISH } } steps { script {