ci: run E2E as soon as linux stage is complete

This commit is contained in:
Siddarth Kumar 2024-08-09 23:04:02 +05:30 committed by Anastasiya
parent 75f837180c
commit b23eacbd9e
1 changed files with 28 additions and 18 deletions

View File

@ -33,11 +33,34 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
parallel { parallel {
stage('Linux/x86_64') { steps { script { stage('Linux/x86_64 and E2E') {
linux_x86_64 = getArtifacts( stages {
'Linux', jenkins.Build('status-desktop/systems/linux/x86_64/package') 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 { stage('Linux/x86_64/Nix') { steps { script {
linux_x86_64_nix = getArtifacts( linux_x86_64_nix = getArtifacts(
'Linux', jenkins.Build('status-desktop/systems/linux/x86_64/package-nix') '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') { stage('Publish') {
when { expression { params.PUBLISH } } when { expression { params.PUBLISH } }
steps { script { steps { script {