Skip to content

Commit

Permalink
Update XMOS Jenkins Shared Library version and use new function for b…
Browse files Browse the repository at this point in the history
…uilding the documents
  • Loading branch information
Michael Banther authored and Michael Banther committed Dec 11, 2024
1 parent 84115cc commit bae3d0f
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('xmos_jenkins_shared_library@v0.33.0') _
@Library('xmos_jenkins_shared_library@v0.34.0') _

def runningOn(machine) {
println "Stage running on:"
Expand All @@ -14,14 +14,6 @@ def checkSkipLink() {
return skip_linkcheck
}

def buildDocs(String zipFileName) {
withVenv {
sh 'pip install git+ssh://[email protected]/xmos/[email protected]'
sh "xmosdoc ${checkSkipLink()}"
zip zipFile: zipFileName, archive: true, dir: "doc/_build"
}
}

getApproval()

pipeline {
Expand All @@ -43,6 +35,11 @@ pipeline {
defaultValue: '15.2.1',
description: 'The XTC tools version'
)
string(
name: 'XMOSDOC_VERSION',
defaultValue: 'v6.2.0',
description: 'The xmosdoc version'
)
}
environment {
PYTHON_VERSION = "3.8.11"
Expand All @@ -59,13 +56,10 @@ pipeline {
agent { label "documentation" }
steps {
runningOn(env.NODE_NAME)
dir('fwk_rtos'){
checkout scm
createVenv()
withTools(params.TOOLS_VERSION) {
buildDocs("fwk_rtos_docs.zip")
} // withTools
} // dir
checkout scm
warnError("Docs") {
buildDocs(archiveZipOnly: true)
}
} // steps
post {
cleanup {
Expand Down

0 comments on commit bae3d0f

Please sign in to comment.