reformat jenkinsfile again x5

This commit is contained in:
Drake Marino 2024-06-06 18:32:51 -05:00
parent bdc69a5dc0
commit bf53db3524

38
Jenkinsfile vendored
View File

@ -12,9 +12,7 @@ pipeline {
}
stage('Build API & UI') {
parallel {
stage('API Build Process') {
stages {
stage('Start API') {
stage('Build API') {
steps {
sh '''docker image prune -f
docker build --no-cache -t fbla-api .
@ -23,31 +21,19 @@ pipeline {
}
}
stage('Run Tests') {
steps {
sh '''dart pub install
dart run ./test/fbla_api_test.dart'''
}
}
}
}
stage('UI Build Process') {
stages {
stage('Build') {
parallel {
stage('Web Build') {
stage('UI Web Build') {
steps {
sh 'flutter build web --release --base-href /fbla/'
}
}
stage('Build Linux') {
stage('UI Linux Build') {
steps {
sh 'flutter build linux --release'
}
}
stage('Build APK') {
stage('UI APK Build') {
steps {
sh 'flutter build apk --release'
}
@ -55,9 +41,16 @@ pipeline {
}
}
stage('Deploy and Save') {
parallel {
stage('Deploy Web Local') {
stage('Run API Tests') {
steps {
sh '''dart pub install
dart run ./test/fbla_api_test.dart'''
}
}
stage('Deploy Local Web UI') {
steps {
script {
def remote = [
@ -110,10 +103,7 @@ pipeline {
}
}
}
}
}
stage('Deploy Remote') {
stage('Deploy Remote Web UI') {
when {
expression {
env.BRANCH_NAME == 'main'
@ -140,5 +130,3 @@ pipeline {
}
}
}
}
}