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