ci: fix syntax
This commit is contained in:
parent
5fc4057d93
commit
cded93d569
1 changed files with 22 additions and 19 deletions
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
|
@ -2,36 +2,39 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
options {
|
options {
|
||||||
buildDiscarder {
|
buildDiscarder (
|
||||||
logRotator(numToKeepStr: '5')
|
logRotator(numToKeepStr: '5')
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Build") {
|
stages {
|
||||||
agent {
|
stage("Build") {
|
||||||
label "flutter"
|
agent {
|
||||||
}
|
label "flutter"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
flutter pub get
|
flutter pub get
|
||||||
|
|
||||||
flutter build web
|
flutter build web
|
||||||
|
|
||||||
cd build/web
|
cd build/web
|
||||||
tar -cvf ../../web.tgz .
|
tar -cvf ../../web.tgz .
|
||||||
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
archiveArtifacts artifacts: "web.tgz"
|
archiveArtifacts artifacts: "web.tgz"
|
||||||
|
|
||||||
cleanWs()
|
cleanWs()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue