2023-07-06 13:37:49 +00:00
|
|
|
#!/usr/bin/env groovy
|
2024-03-27 12:07:45 +00:00
|
|
|
library 'status-jenkins-lib@v1.8.11'
|
2023-07-06 13:37:49 +00:00
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent { label 'linux' }
|
|
|
|
|
|
|
|
triggers {
|
2024-03-12 20:27:38 +00:00
|
|
|
// Nightly at 0am
|
|
|
|
cron 'H 0 * * *'
|
2023-07-06 13:37:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
name: 'BRANCH',
|
|
|
|
description: 'Name of the branch to checkout and build.',
|
|
|
|
defaultValue: 'develop',
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
buildDiscarder(logRotator(
|
|
|
|
numToKeepStr: '10',
|
|
|
|
daysToKeepStr: '30',
|
2024-02-28 14:50:47 +00:00
|
|
|
artifactNumToKeepStr: '1',
|
2023-07-06 13:37:49 +00:00
|
|
|
))
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
apk_build = jenkins.Build('status-mobile/platforms/android-e2e')
|
|
|
|
apk_build_number = apk_build.getNumber().toString()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Run e2e') {
|
|
|
|
steps {
|
|
|
|
build(
|
|
|
|
job: 'status-mobile/e2e/status-app-nightly',
|
|
|
|
parameters: [
|
|
|
|
string(name: 'APK_BUILD_NUMBER', value: apk_build_number),
|
|
|
|
string(name: 'BRANCH', value: env.BRANCH),
|
|
|
|
]
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|