mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 13:48:56 -07:00
Fix jenkinsfile syntax
This commit is contained in:
parent
b175a97c41
commit
7836668d4c
1 changed files with 23 additions and 17 deletions
40
Jenkinsfile
vendored
40
Jenkinsfile
vendored
|
@ -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 ../../../../
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue