diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index a70b166..05836f7 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -26,9 +26,17 @@ pipeline { sh '. ci/build.sh' } } + post { + success { + archiveArtifacts 'dustin.web.tar.xz' + } + } } stage('Publish') { + when { + branch 'master' + } steps { container('rsync') { sshagent(['jenkins-web']) { diff --git a/ci/build.sh b/ci/build.sh index 734e263..2ba3c1e 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -5,3 +5,5 @@ from json import dump import sys dump(load(sys.stdin), sys.stdout) EOF + +tar -cJf dustin.web.tar.xz -C public .