From 6ab28737422add94cac9edfc838e96065e607aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 23 Oct 2023 19:49:28 +0200 Subject: [PATCH] feat(ci): trigger new E2E run after Linux build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We run `prs` job for PRs and `nightly` for... nightly. Depends on: https://github.com/status-im/desktop-qa-automation/pull/195 Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.linux | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 072fe8cc45..f97be404e4 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -105,6 +105,17 @@ pipeline { } } } + + stage('E2E') { + when { expression { getE2EBuildType() != null } } + steps { script { + build( + job: "status-desktop/e2e/${getE2EBuildType()}", + parameters: jenkins.mapToParams([BUILD_SOURCE: JOB_NAME]), + wait: false + ) + } } + } } post { success { script { github.notifyPR(true) } } @@ -114,12 +125,19 @@ pipeline { } def getArch() { - def tokens = Thread.currentThread().getName().split('/') - for (def arch in ['x86_64', 'aarch64']) { - if (tokens.contains(arch)) { return arch } - } + def tokens = Thread.currentThread().getName().split('/') + for (def arch in ['x86_64', 'aarch64']) { + if (tokens.contains(arch)) { return arch } + } +} + +def getE2EBuildType() { + if (utils.isPRBuild()) { return 'prs' } + def parent = parentOrCurrentBuild() + if (parent != null && parent.name == 'nightly') { return nightly } + return null } def getMockedKeycardLibDefault() { - return utils.isReleaseBuild() ? 'false' : 'true' + return utils.isReleaseBuild() ? 'false' : 'true' }