pipeline { agent { label 'armv7hl' } environment { TMPDIR = pwd(tmp: true) XDG_CACHE_HOME = "${WORKSPACE}/.cache" } stages { stage('Build') { steps { sh '. ./build.sh' } } stage('Publish') { steps { sshagent(['jenkins-sftp']) { sh '. ./publish.sh' } } } } }