Add 'Jenkinsfile'
This commit is contained in:
parent
ef5455f545
commit
2ddb938288
1 changed files with 21 additions and 0 deletions
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
label 'optiplex'
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Update Website'){
|
||||||
|
steps {
|
||||||
|
sh "chmod -R 777 ./*"
|
||||||
|
|
||||||
|
sh "sudo bundle install"
|
||||||
|
sh "bundle exec jekyll deploy"
|
||||||
|
|
||||||
|
sh "mv ./_site/ ./blueanimates/"
|
||||||
|
sh "rm -R /usr/share/nginx/blueanimates/"
|
||||||
|
sh "cp -R ./blueanimates/ /usr/share/nginx/blueanimates/"
|
||||||
|
sh "rm -R ./blueanimates/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in a new issue