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 { stages {
step ("Build") { stage ("Build") {
script { steps {
sh '''
#!/bin/bash
flutter pub get script {
flutter build linux sh '''
flutter build apk #!/bin/bash
'''
flutter pub get
flutter build linux
flutter build apk
'''
}
} }
} }
step ('Package') { stage ('Package') {
script { steps {
sh ''' script {
#!/bin/bash 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 ../../../../
'''
} }
} }
} }