Skip to content

Commit

Permalink
feat(ci): trigger new E2E run after Linux build
Browse files Browse the repository at this point in the history
We run `prs` job for PRs and `nightly` for... nightly.

Depends on:
status-im/desktop-qa-automation#195

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Oct 24, 2023
1 parent c0b564e commit 6ab2873
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions ci/Jenkinsfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -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) } }
Expand All @@ -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'
}

0 comments on commit 6ab2873

Please sign in to comment.