LibAC-dart/Jenkinsfile
2024-10-05 19:22:24 -07:00

46 lines
1,015 B
Groovy

pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage('Build on linux') {
agent {
label 'flutter'
}
steps {
script {
// Use bash as the shell for these commands
sh '''
#!/bin/bash
unset WORKSPACE
unset WORKSPACE_TMP
rm -rf doc
dart pub get
dart doc
tar -cvf docs.tgz doc/api/*
flutter pub publish -f --skip-validation || true
'''
}
}
post {
always {
archiveArtifacts artifacts: "*.tgz", fingerprint: true
deleteDir()
}
}
}
}
}