forked from PAWPAW-Mirror/lib_xua
Add Jenkins release steps
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -86,16 +86,31 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Update') {
|
stage('Release and update') {
|
||||||
agent {
|
agent {
|
||||||
label 'x86_64&&brew'
|
label 'x86_64&&brew'
|
||||||
}
|
}
|
||||||
steps {
|
stages {
|
||||||
updateViewfiles()
|
stage('Release') {
|
||||||
|
when {
|
||||||
|
expression {
|
||||||
|
isReleaseBranchOfOrganisation('xmos')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'mkdir ${REPO}/empty'
|
||||||
|
xcoreReleaseToGithub("${WORKSPACE}/${REPO}","${WORKSPACE}/${REPO}/empty")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Update') {
|
||||||
|
steps {
|
||||||
|
updateViewfiles()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
cleanup {
|
cleanup {
|
||||||
cleanWs()
|
xcoreCleanSandbox()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user