Baltimore-hackthebox-knowle.../Jenkinsfile

24 lines
827 B
Plaintext
Raw Normal View History

2022-02-18 19:01:49 +00:00
/* Do not edit this file. This is how the site gets built and deployed.
Are there better/cheaper/different ways to build and host a static site?
Yes. I'm aware. I have my reasons. Don't bug me about it.
*/
pipeline {
2022-02-18 21:14:44 +00:00
options {
skipDefaultCheckout true
}
2022-02-18 19:01:49 +00:00
agent any
2022-02-18 20:30:29 +00:00
stages {
2022-02-18 20:33:54 +00:00
stage('Everything') {
2022-02-18 20:55:04 +00:00
agent { label 'prod_web' }
steps {
sh '''
cd $(mktemp -d);
2022-02-18 21:33:26 +00:00
wget http://gittea.lxd:3000/s00ner/Baltimore-hackthebox-knowledgebase/archive/main.tar.gz;
2022-02-18 20:55:04 +00:00
tar -xf main.tar.gz;
rsync --recursive --exclude 'Jenkinsfile' --delete ./baltimore-hackthebox-knowledgebase/ /home/mdbook/wiki/src/;
rm -rf $(pwd);
'''
}
2022-02-18 19:01:49 +00:00
}
}
}