feat(ci): trigger new E2E run after Linux build

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 <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-10-23 19:49:28 +02:00
parent c0b564e160
commit 6ab2873742
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 23 additions and 5 deletions

View File

@ -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) } }
@ -120,6 +131,13 @@ def getArch() {
}
}
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'
}