Repair Jenkinsfile syntax

This commit is contained in:
zontreck 2024-07-08 22:11:58 -07:00
parent 7f0bee7c28
commit a047189dca

32
Jenkinsfile vendored
View file

@ -1,29 +1,31 @@
pipeline {
agent linux
agent linux // You can specify 'linux' if you specifically need a Linux agent
stages {
stage('Build') {
steps {
dart doc
sh 'dart doc'
}
}
steps('Test') {
stage('Test') {
steps {
dart test
sh 'dart test'
}
}
steps('Deploy') {
stage('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
sh 'dart pub publish'
sh 'git clone git@github.com:ariascreations/ServerCode'
sh 'rsync -a --progress -h --delete doc/api/ ServerCode/api.zontreck.com/dartdocs/libac/'
dir('ServerCode') {
sh 'git add --all .'
sh 'git commit -m "[BOT] Publish LibAC DartDocs"'
sh 'git push --all'
}
sh 'rm -rf ServerCode'
}
}
}
}
}