From 85558802e561268a0b2387ae90abfdd1e66b9a45 Mon Sep 17 00:00:00 2001 From: Hampton Moore Date: Tue, 29 Aug 2023 13:17:51 -0400 Subject: [PATCH] doc: Have jenkins generate build output for viewing Change-Id: I5fd951022c73616aa3b850d8e04b2c72f23a7791 --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 892275a..0886df7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,5 +45,25 @@ pipeline { } } } + + stage('Build and Publish Documentation') { + steps { + container('artools') { + dir("${WORKSPACE}") { + sh "pip install -r requirements.txt" + sh "sphinx-build docsrc _build" + + publishHTML (target: [ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: true, + reportDir: '_build', + reportFiles: 'index.html', + reportName: 'Documentation' + ]) + } + } + } + } } }