ZontreckWebsite/Jenkinsfile
2025-01-30 20:34:52 -07:00

40 lines
No EOL
662 B
Groovy

pipeline {
agent any
options {
buildDiscarder (
logRotator(numToKeepStr: '5')
)
}
stages {
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()
}
}
}
}
}