diff --git a/Jenkinsfile b/Jenkinsfile index 38ee14a..799743d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,5 +44,33 @@ pipeline { } } } + + stage("Build Web App") { + agent { + label 'linux' + } + + steps { + script { + sh ''' + #!/bin/bash + + flutter build web + + cd build/web + tar -cvf ../../web.tgz . + cd ../.. + ''' + } + } + + post { + always { + archiveArtifacts artifacts: "web.tgz" + + cleanWs() + } + } + } } } \ No newline at end of file