Adds in a jenkinsfile
This commit is contained in:
parent
bcaf02091f
commit
7f0bee7c28
3 changed files with 56 additions and 1 deletions
29
Jenkinsfile
vendored
Normal file
29
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
pipeline {
|
||||
agent linux
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
dart doc
|
||||
}
|
||||
}
|
||||
steps('Test') {
|
||||
steps {
|
||||
dart test
|
||||
}
|
||||
}
|
||||
steps('Deploy') {
|
||||
steps {
|
||||
dart pub publish
|
||||
git clone git@github.com:ariascreations/ServerCode
|
||||
rsync -a --progress -h --delete doc/api/ ServerCode/api.zontreck.com/dartdocs/libac/
|
||||
cd ServerCode
|
||||
git add --all .
|
||||
git commit -m "[BOT] Publish LibAC DartDocs"
|
||||
git push --all
|
||||
cd ..
|
||||
rm -rf ServerCode
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue