ci: Add jenkinsfile

This commit is contained in:
zontreck 2025-01-31 03:34:22 -07:00
parent 8d20540b0f
commit e351f30d4a

46
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,46 @@
pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Build and Publish") {
agent {
label "flutter"
}
steps {
script {
sh '''
#!/bin/bash
unset WORKSPACE
unset WORKSPACE_TMP
rm -rf doc || true
flutter pub get
flutter pub publish -f --skip-validation || true
dart doc
cd doc/api
tar -cvf ../../docs.tgz .
'''
}
}
post {
always {
archiveArtifacts artifacts: "docs.tgz"
cleanWs()
}
}
}
}
}