Add a build on windows stage
This commit is contained in:
parent
47164c1b67
commit
b25347a291
1 changed files with 24 additions and 0 deletions
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
|
@ -42,5 +42,29 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage ("Build Windows") {
|
||||||
|
agent {
|
||||||
|
label 'windows'
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
bat 'flutter pub get'
|
||||||
|
bat 'flutter build windows'
|
||||||
|
|
||||||
|
dir ("build/windows/x64/runner/release") {
|
||||||
|
bat 'tar -cvf ../../../../../windows.tgz .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts artifacts: "windows.tgz"
|
||||||
|
|
||||||
|
cleanWs()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue