Fix jenkinsfile syntax

This commit is contained in:
zontreck 2024-07-21 02:35:09 -07:00
parent b175a97c41
commit 7836668d4c

40
Jenkinsfile vendored
View file

@ -11,27 +11,33 @@ pipeline {
}
stages {
step ("Build") {
script {
sh '''
#!/bin/bash
stage ("Build") {
steps {
flutter pub get
flutter build linux
flutter build apk
'''
script {
sh '''
#!/bin/bash
flutter pub get
flutter build linux
flutter build apk
'''
}
}
}
step ('Package') {
script {
sh '''
#!/bin/bash
stage ('Package') {
steps {
script {
sh '''
#!/bin/bash
cd build/linux/x64/release/bundle
tar -cvf ../../../../../linux.tgz ./
cd ../../../../app/outputs/flutter-apk
cp app-release.apk ../../../../
'''
}
cd build/linux/x64/release/bundle
tar -cvf ../../../../../linux.tgz ./
cd ../../../../app/outputs/flutter-apk
cp app-release.apk ../../../../
'''
}
}
}