-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update XMOS Jenkins Shared Library version and use new function for b…
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:" | ||
|
@@ -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 { | ||
|
@@ -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" | ||
|
@@ -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 { | ||
|