forked from robert/robertjohnson.work
added ntfy
This commit is contained in:
parent
ce5791d917
commit
a9a67fb34c
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -17,18 +17,21 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'chmod -R 777 .'
|
sh 'chmod -R 777 .'
|
||||||
sh 'gem install bundler'
|
sh 'gem install bundler'
|
||||||
|
sh 'curl -d "robertjohnson.work Prep stage done." https://ntfy.draft13.com/jenkins'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'bundle install'
|
sh 'bundle install'
|
||||||
sh 'bundle exec jekyll build'
|
sh 'bundle exec jekyll build'
|
||||||
|
sh 'curl -d "robertjohnson.work Build stage done." https://ntfy.draft13.com/jenkins'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu'
|
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu'
|
||||||
sh 'ssh ubuntu@box.myemail.cloud -i $KEY_FILE \'bash -s\' < deploy.sh'
|
sh 'ssh ubuntu@box.myemail.cloud -i $KEY_FILE \'bash -s\' < deploy.sh'
|
||||||
|
sh 'curl -d "robertjohnson.work Deploy stage done." https://ntfy.draft13.com/jenkins'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user