This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues/pull-requests.
homeassistant-wheels/Jenkinsfile

31 lines
607 B
Groovy

pipeline {
agent {
dockerfile {
label 'arm'
filename 'Containerfile'
args '-u 0:0 -v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro'
}
}
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'
}
}
}
}
}