mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +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
49 lines
937 B
Groovy
49 lines
937 B
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.8.7'
|
|
|
|
pipeline {
|
|
agent {
|
|
label 'linux'
|
|
}
|
|
|
|
triggers {
|
|
cron('H 5 * * *')
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
/* Prevent Jenkins jobs from running forever */
|
|
timeout(time: 15, unit: 'MINUTES')
|
|
/* Disable concurrent jobs */
|
|
disableConcurrentBuilds()
|
|
/* Don't keep more than 50 builds */
|
|
buildDiscarder(logRotator(numToKeepStr: '10'))
|
|
}
|
|
|
|
stages {
|
|
stage('Get Nodes') {
|
|
steps { script {
|
|
stagePerNode = nodesByLabel('macos').collectEntries {
|
|
["${it}" : generateNodeCleanupStage(it)]
|
|
}
|
|
} }
|
|
}
|
|
|
|
stage('Clean Xcode') {
|
|
steps { script {
|
|
parallel stagePerNode
|
|
} }
|
|
}
|
|
}
|
|
}
|
|
|
|
def generateNodeCleanupStage(nodeLabel) {
|
|
return { stage(nodeLabel) {
|
|
node(nodeLabel) {
|
|
dir('/Users/jenkins/Library/Developer/Xcode') {
|
|
sh 'rm -fr Archives DerivedData'
|
|
}
|
|
}
|
|
} }
|
|
}
|