37 lines
No EOL
558 B
Groovy
37 lines
No EOL
558 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
buildDiscarder {
|
|
logRotator(numToKeepStr: '5')
|
|
}
|
|
}
|
|
|
|
stage("Build") {
|
|
agent {
|
|
label "flutter"
|
|
}
|
|
|
|
steps {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
flutter pub get
|
|
|
|
flutter build web
|
|
|
|
cd build/web
|
|
tar -cvf ../../web.tgz .
|
|
|
|
'''
|
|
}
|
|
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: "web.tgz"
|
|
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
} |