Adds a utility binary and adds tasks to the windows node
This commit is contained in:
parent
6555b6c8f0
commit
92df8e4dcd
3 changed files with 104 additions and 14 deletions
48
Jenkinsfile
vendored
48
Jenkinsfile
vendored
|
@ -1,7 +1,6 @@
|
|||
pipeline {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
agent any
|
||||
|
||||
options {
|
||||
buildDiscarder(
|
||||
logRotator(
|
||||
|
@ -11,8 +10,10 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('Build') {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
stage('Build on linux') {
|
||||
steps {
|
||||
script {
|
||||
// Use bash as the shell for these commands
|
||||
|
@ -26,26 +27,45 @@ pipeline {
|
|||
|
||||
mkdir -p out
|
||||
dart compile exe -o out/dbikc bin/dbikc.dart
|
||||
dart compile exe -o out/mkfsreport bin/mkfsreport.dart
|
||||
|
||||
tar -cvf docs.tgz doc/api/*
|
||||
|
||||
flutter pub publish -f --skip-validation
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "*.tgz", fingerprint: true
|
||||
archiveArtifacts artifacts: "out/*", fingerprint: true
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
stage('Build on Windows') {
|
||||
agent {
|
||||
label 'windows'
|
||||
}
|
||||
steps {
|
||||
sh 'flutter pub publish -f --skip-validation'
|
||||
script {
|
||||
bat "dart pub get"
|
||||
bat "mkdir out"
|
||||
bat "dart compile exe -o out/dbikc.exe bin/dbikc.dart"
|
||||
bat "dart compile exe -o out/mkfsreport.exe bin/mkfsreport.dart"
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "out\\*.exe", fingerprint: true
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "*.tgz", fingerprint: true
|
||||
archiveArtifacts artifacts: "out/*", fingerprint: true
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue