Add Jenkins release steps

This commit is contained in:
Larry Snizek
2019-08-23 14:32:24 +01:00
parent 5b1132a603
commit 235b06f00a

23
Jenkinsfile vendored
View File

@@ -86,16 +86,31 @@ pipeline {
}
}
}
stage('Update') {
stage('Release and update') {
agent {
label 'x86_64&&brew'
}
steps {
updateViewfiles()
stages {
stage('Release') {
when {
expression {
isReleaseBranchOfOrganisation('xmos')
}
}
steps {
sh 'mkdir ${REPO}/empty'
xcoreReleaseToGithub("${WORKSPACE}/${REPO}","${WORKSPACE}/${REPO}/empty")
}
}
stage('Update') {
steps {
updateViewfiles()
}
}
}
post {
cleanup {
cleanWs()
xcoreCleanSandbox()
}
}
}