dcow-site/ci/Jenkinsfile

29 lines
560 B
Groovy

pipeline {
agent {
dockerfile {
dir 'ci'
}
}
triggers {
pollSCM ''
}
environment {
PUBLISH_HOST = 'web0.pyrocufflink.blue'
PUBLISH_USER = 'webapp.dcow'
}
stages {
stage('Publish') {
steps {
sh 'pip3 wheel -w dist .'
sshagent(['jenkins-web']) {
sh "ssh -oStrictHostKeyChecking=no ${PUBLISH_USER}@${PUBLISH_HOST} :"
sh '. ci/publish.sh'
}
}
}
}
}