add libs
This commit is contained in:
55
lib_gpio/Jenkinsfile
vendored
Normal file
55
lib_gpio/Jenkinsfile
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
@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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user