Skip to content
Snippets Groups Projects
Commit 06d1a293 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Moved docs-job into gcc docker job.

parent b4dd373b
No related branches found
No related tags found
No related merge requests found
......@@ -54,13 +54,6 @@ if (helper.isRelease(this)) {
}
}
builders['docs'] = {
node('docker') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/docs.groovy'
}
}
if (helper.isOriginMaster(this)) {
builders['coverage'] = {
node('docker') {
......
def defaultCMakeOptions =
'-DOGS_LIB_BOOST=System ' +
'-DOGS_LIB_VTK=System ' +
'-DDOCS_GENERATE_LOGFILE=ON'
def configure = new ogs.configure()
def build = new ogs.build()
def post = new ogs.post()
def helper = new ogs.helper()
def image = docker.image('ogs6/gcc-latex:latest')
image.pull()
image.inside() {
stage('Configure (Docs)') {
configure.linux(cmakeOptions: defaultCMakeOptions, script: this)
}
stage('Generate (Docs)') {
build.linux(script: this, target: 'doc')
}
}
stage('Reports (Docs)') {
publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: true,
keepAll: true, reportDir: 'build/docs', reportFiles: 'index.html',
reportName: 'Doxygen'])
step([$class: 'WarningsPublisher', canResolveRelativePaths: false,
messagesPattern: """
.*DOT_GRAPH_MAX_NODES.
.*potential recursive class relation.*""",
parserConfigurations: [[parserName: 'Doxygen', pattern:
'build/DoxygenWarnings.log']], unstableTotalAll: '0'])
}
if (helper.isOriginMaster(this)) {
stage('Deploy (Docs)') {
sshagent(credentials: ['www-data_jenkins']) {
sh 'rsync -a --delete --stats -e "ssh -o StrictHostKeyChecking=no"' +
' build/docs/ www-data@jenkins.opengeosys.org:'+
'/var/www/doxygen.opengeosys.org'
}
}
}
......@@ -76,11 +76,30 @@ image.inside(defaultDockerArgs) {
keepDir: true,
script: this
)
build.linux(script: this)
build.linux(script: this, target: 'package doc')
}
}
stage('Post (Linux-Docker)') {
post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml'
publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: true,
keepAll: true, reportDir: 'build/docs', reportFiles: 'index.html',
reportName: 'Doxygen'])
step([$class: 'WarningsPublisher', canResolveRelativePaths: false,
messagesPattern: """
.*DOT_GRAPH_MAX_NODES.
.*potential recursive class relation.*""",
parserConfigurations: [[parserName: 'Doxygen', pattern:
'build/DoxygenWarnings.log']], unstableTotalAll: '0'])
if (helper.isOriginMaster(this)) {
sshagent(credentials: ['www-data_jenkins']) {
sh 'rsync -a --delete --stats -e "ssh -o StrictHostKeyChecking=no"' +
' build/docs/ www-data@jenkins.opengeosys.org:'+
'/var/www/doxygen.opengeosys.org'
}
}
post.cleanup()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment