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.

Jenkinsfile 706B

123456789101112131415161718192021222324252627282930
  1. pipeline {
  2. agent {
  3. label 'hugo && linky'
  4. }
  5. stages {
  6. stage('Update submodules') {
  7. steps {
  8. sh "git submodule update --init --recursive"
  9. }
  10. }
  11. stage('Build') {
  12. steps {
  13. sh "hugo"
  14. archiveArtifacts artifacts: 'public/**', excludes: null
  15. }
  16. }
  17. stage('Publish') {
  18. steps {
  19. sshagent(['hacknology-website-deploy']) {
  20. sh 'rsync --recursive --links --verbose --del --rsh "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" public/ www-data@chapel.hacknology.de:/var/www/http/'
  21. }
  22. }
  23. }
  24. stage('Check links') {
  25. steps {
  26. sh "linky https://www.hacknology.de"
  27. }
  28. }
  29. }
  30. }