41 lines
No EOL
954 B
Groovy
41 lines
No EOL
954 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
buildDiscarder(
|
|
logRotator(numToKeepStr: '5')
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage ("Build Android") {
|
|
agent {
|
|
label 'linux'
|
|
}
|
|
|
|
steps {
|
|
script {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
flutter build apk
|
|
flutter build appbundle
|
|
|
|
mv build/app/outputs/flutter-apk/{app-release,timetrack}.apk
|
|
|
|
mv build/app/outputs/bundle/release/{app-release,timetrack}.aab
|
|
'''
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: "build/app/outputs/flutter-apk/timetrack.apk"
|
|
archiveArtifacts artifacts: "build/app/outputs/release/timetrack.aab"
|
|
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |