flutter_treeview/Jenkinsfile
2025-03-22 09:44:28 -07:00

48 lines
No EOL
1.1 KiB
Groovy

pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage ("Build on Linux") {
agent {
label "flutter"
}
steps {
script {
sh '''
#!/bin/bash
unset WORKSPACE
unset WORKSPACE_TMP
rm -rf doc
flutter pub get
# dart doc
# Workaround for dart doc being broken at the moment
dart pub global activate dartdoc
dart pub global run dartdoc
tar -cvf docs.tgz doc/api/*
flutter pub publish -f --skip-validation || true
'''
}
}
post {
always {
archiveArtifacts artifacts: "*.tgz", fingerprint: true
cleanWs()
}
}
}
}
}