Allows MixPanel to be configured per environment. The hardcoded MixPanel app ID and token are removed from the code (see the parent issue for more details). The token can be exploited and that’s by design in most analytics tools https://developer.mixpanel.com/reference/project-token. Fixes https://github.com/status-im/status-mobile/issues/21974 Areas that may be impacted - Analytics
53 lines
1.0 KiB
Groovy
53 lines
1.0 KiB
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.9.20'
|
|
|
|
pipeline {
|
|
agent { label 'linux' }
|
|
|
|
triggers {
|
|
// Nightly at 0am
|
|
cron 'H 0 * * *'
|
|
}
|
|
|
|
parameters {
|
|
string(
|
|
name: 'BRANCH',
|
|
description: 'Name of the branch to checkout and build.',
|
|
defaultValue: 'develop',
|
|
)
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
disableConcurrentBuilds()
|
|
buildDiscarder(logRotator(
|
|
numToKeepStr: '10',
|
|
daysToKeepStr: '30',
|
|
artifactNumToKeepStr: '1',
|
|
))
|
|
}
|
|
|
|
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),
|
|
]
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|