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 {
|
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 ../../../../
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue