Add Jenkinsfile
This commit is contained in:
parent
726dd47ec7
commit
9d3f04bbbd
1 changed files with 41 additions and 0 deletions
41
Jenkinsfile
vendored
Normal file
41
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Config') {
|
||||
steps {
|
||||
withCredentials([file(
|
||||
credentialsId: '23ecf53c-2fc9-41ed-abfa-0b32d60d688f',
|
||||
variable : 'ACRA_PROPERTIES_FILE'
|
||||
)]) {
|
||||
sh 'cp "$ACRA_PROPERTIES_FILE" app/acra.properties'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './gradlew assembleRelease test'
|
||||
}
|
||||
}
|
||||
stage('Sign & Archive') {
|
||||
steps {
|
||||
[
|
||||
$class : 'SignApksBuilder',
|
||||
apksToSign: 'app/build/outputs/apk/*/release/*.apk',
|
||||
keyAlias : 'simplemarkdown',
|
||||
keyStoreId: '44651a2a-1e46-4708-80ab-d8befc6e94f0'
|
||||
]
|
||||
archiveArtifacts 'app/build/outputs/mapping'
|
||||
}
|
||||
}
|
||||
stage('Report') {
|
||||
steps {
|
||||
junit '**/build/test-results/**/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue