2024-07-08 22:05:17 -07:00
|
|
|
pipeline {
|
2024-08-24 00:02:02 -07:00
|
|
|
agent any
|
|
|
|
|
2024-07-08 23:38:58 -07:00
|
|
|
options {
|
|
|
|
buildDiscarder(
|
|
|
|
logRotator(
|
|
|
|
numToKeepStr: '5'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
2024-07-08 22:05:17 -07:00
|
|
|
|
|
|
|
stages {
|
2024-08-24 00:02:02 -07:00
|
|
|
stage('Build on linux') {
|
2024-08-24 00:03:26 -07:00
|
|
|
agent {
|
|
|
|
label 'linux'
|
|
|
|
}
|
|
|
|
|
2024-07-08 22:05:17 -07:00
|
|
|
steps {
|
2024-07-09 21:24:07 -07:00
|
|
|
script {
|
|
|
|
// Use bash as the shell for these commands
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
|
|
|
unset WORKSPACE
|
2024-07-09 21:45:49 -07:00
|
|
|
unset WORKSPACE_TMP
|
2024-07-10 02:46:33 -07:00
|
|
|
rm -rf doc
|
2024-07-09 21:45:49 -07:00
|
|
|
dart pub get
|
2024-07-09 21:24:07 -07:00
|
|
|
dart doc
|
2024-07-27 02:36:21 -07:00
|
|
|
|
|
|
|
mkdir -p out
|
|
|
|
dart compile exe -o out/dbikc bin/dbikc.dart
|
2024-08-24 00:02:02 -07:00
|
|
|
dart compile exe -o out/mkfsreport bin/mkfsreport.dart
|
2024-07-27 02:33:05 -07:00
|
|
|
|
2024-07-09 21:24:07 -07:00
|
|
|
tar -cvf docs.tgz doc/api/*
|
2024-08-24 00:02:02 -07:00
|
|
|
|
|
|
|
flutter pub publish -f --skip-validation
|
2024-07-09 21:24:07 -07:00
|
|
|
'''
|
|
|
|
}
|
2024-07-08 22:05:17 -07:00
|
|
|
}
|
2024-08-24 00:02:02 -07:00
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: "*.tgz", fingerprint: true
|
|
|
|
archiveArtifacts artifacts: "out/*", fingerprint: true
|
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
2024-07-08 22:05:17 -07:00
|
|
|
}
|
2024-07-08 22:11:58 -07:00
|
|
|
|
2024-08-24 00:02:02 -07:00
|
|
|
stage('Build on Windows') {
|
|
|
|
agent {
|
|
|
|
label 'windows'
|
|
|
|
}
|
2024-07-08 22:05:17 -07:00
|
|
|
steps {
|
2024-08-24 00:02:02 -07:00
|
|
|
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()
|
|
|
|
}
|
2024-07-08 22:05:17 -07:00
|
|
|
}
|
|
|
|
}
|
2024-07-20 20:41:32 -07:00
|
|
|
}
|
2024-07-09 21:48:19 -07:00
|
|
|
|
2024-07-20 20:41:32 -07:00
|
|
|
|
2024-07-08 22:11:58 -07:00
|
|
|
}
|