Skip to content

Commit

Permalink
[Jenkins] Added docs job.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Sep 23, 2016
1 parent ae7a89d commit 717f675
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/jenkins/docs.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
node('docker') {
def defaultCMakeOptions =
'-DOGS_LIB_BOOST=System ' +
'-DOGS_LIB_VTK=System'

stage 'Checkout (Docs)'
dir('ogs') { checkout scm }

docker.image('ogs6/gcc-gui:latest').inside() {
stage 'Configure (Docs)'
configure.linux 'build', "${defaultCMakeOptions}"

stage 'Generate (Docs)'
build.linux 'build', 'doc'
}

stage 'Reports (Docs)'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false,
reportDir: 'build/docs', reportFiles: 'index.html', reportName: 'Doxygen'])
step([$class: 'WarningsPublisher', canComputeNew: false,
canResolveRelativePaths: false, consoleParsers: [[parserName: 'Doxygen']],
defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '',
messagesPattern: '', unHealthy: ''])

if (helper.isOriginMaster()) {
stage 'Deploy (Docs)'
sh 'rsync -a --delete --stats build/docs/ ' +
'web@doxygen.opengeosys.org:/www/doxygenogs'
}
}

0 comments on commit 717f675

Please sign in to comment.