56 lines
986 B
Groovy
56 lines
986 B
Groovy
@Library('xmos_jenkins_shared_library@v0.32.0') _
|
|
|
|
getApproval()
|
|
|
|
pipeline {
|
|
agent {
|
|
label 'x86_64&&linux'
|
|
}
|
|
environment {
|
|
REPO = 'lib_gpio'
|
|
VIEW = getViewName(REPO)
|
|
}
|
|
options {
|
|
skipDefaultCheckout()
|
|
}
|
|
stages {
|
|
stage('Get view') {
|
|
steps {
|
|
xcorePrepareSandbox("${VIEW}", "${REPO}")
|
|
}
|
|
}
|
|
|
|
stage('Library checks') {
|
|
steps {
|
|
xcoreLibraryChecks("${REPO}")
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
steps {
|
|
runXmostest("${REPO}", 'tests')
|
|
}
|
|
}
|
|
stage('xCORE builds') {
|
|
steps {
|
|
dir("${REPO}") {
|
|
xcoreAllAppsBuild('examples')
|
|
dir("${REPO}") {
|
|
runXdoc('doc')
|
|
}
|
|
}
|
|
|
|
// Archive all the generated .pdf docs
|
|
archiveArtifacts artifacts: "${REPO}/**/pdf/*.pdf", fingerprint: true, allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
updateViewfiles()
|
|
}
|
|
cleanup {
|
|
xcoreCleanSandbox()
|
|
}
|
|
}
|
|
}
|