ZontreckWebsite/Jenkinsfile
2025-01-30 20:27:30 -07:00

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()
}
}
}
}