Migrate package to git.zontreck.com
This commit is contained in:
parent
6985aa366b
commit
a8b322b54f
3 changed files with 70 additions and 22 deletions
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
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
|
||||
|
||||
tar -cvf docs.tgz doc/api/*
|
||||
flutter pub publish -f --skip-validation || true
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "*.tgz", fingerprint: true
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue