ci: Add web build task for web.tgz
This commit is contained in:
parent
0b83eaaf3c
commit
9b50945e3b
1 changed files with 28 additions and 0 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue