mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
2c96c38339
fixes #18831 We update the nix derivation to build android by passing `hermesEnabled` flag which checks the environment variable and if the environment variable is not set we default `hermesEnabled` to `true`. This ensures that `hermes` is disabled for debug builds and enabled for release builds. In this commit we also - rename `nix/mobile/android/release.nix` → `nix/mobile/android/build.nix` since that nix file no longer generates release only builds. - cleanup 2 other env vars and use the `gradle` project format - replace `BUILD_NUMBER` with `verisonCode` for consistency - replace `androidGradleOpts ` with `buildUrl ` - bump `status-jenkins-lib` to v1.8.7
52 lines
992 B
Groovy
52 lines
992 B
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.8.7'
|
|
|
|
pipeline {
|
|
agent { label 'linux' }
|
|
|
|
triggers {
|
|
// Nightly at 2am
|
|
cron 'H 2 * * *'
|
|
}
|
|
|
|
parameters {
|
|
string(
|
|
name: 'BRANCH',
|
|
description: 'Name of the branch to checkout and build.',
|
|
defaultValue: 'develop',
|
|
)
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
disableConcurrentBuilds()
|
|
buildDiscarder(logRotator(
|
|
numToKeepStr: '10',
|
|
daysToKeepStr: '30',
|
|
))
|
|
}
|
|
|
|
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),
|
|
]
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|