Hackerspace Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
website/Jenkinsfile

30 lines
706 B

pipeline {
agent {
label 'hugo && linky'
}
stages {
stage('Update submodules') {
steps {
sh "git submodule update --init --recursive"
}
}
stage('Build') {
steps {
sh "hugo"
archiveArtifacts artifacts: 'public/**', excludes: null
}
}
stage('Publish') {
steps {
sshagent(['hacknology-website-deploy']) {
sh 'rsync --recursive --links --verbose --del --rsh "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" public/ www-data@chapel.hacknology.de:/var/www/http/'
}
}
}
stage('Check links') {
steps {
sh "linky https://www.hacknology.de"
}
}
}
}