diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2f9d4b7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,37 @@ +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() + } + } + } +} \ No newline at end of file