Repair Jenkinsfile syntax
This commit is contained in:
parent
7f0bee7c28
commit
a047189dca
1 changed files with 17 additions and 15 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -1,29 +1,31 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent linux
|
agent linux // You can specify 'linux' if you specifically need a Linux agent
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
dart doc
|
sh 'dart doc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps('Test') {
|
|
||||||
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
dart test
|
sh 'dart test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps('Deploy') {
|
|
||||||
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
dart pub publish
|
sh 'dart pub publish'
|
||||||
git clone git@github.com:ariascreations/ServerCode
|
sh 'git clone git@github.com:ariascreations/ServerCode'
|
||||||
rsync -a --progress -h --delete doc/api/ ServerCode/api.zontreck.com/dartdocs/libac/
|
sh 'rsync -a --progress -h --delete doc/api/ ServerCode/api.zontreck.com/dartdocs/libac/'
|
||||||
cd ServerCode
|
dir('ServerCode') {
|
||||||
git add --all .
|
sh 'git add --all .'
|
||||||
git commit -m "[BOT] Publish LibAC DartDocs"
|
sh 'git commit -m "[BOT] Publish LibAC DartDocs"'
|
||||||
git push --all
|
sh 'git push --all'
|
||||||
cd ..
|
}
|
||||||
rm -rf ServerCode
|
sh 'rm -rf ServerCode'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue