blob: 70390dba107be5ac22772e5e36dedced52673662 [file] [log] [blame]
pipeline {
agent {
label 'svn-websites'
}
stages {
stage('Build') {
when {
not { branch 'master' }
}
steps {
withMaven(jdk:'jdk_1.8_latest', maven:'maven_latest', mavenLocalRepo:'.repository', options: [
artifactsPublisher(disabled: true),
junitPublisher(disabled: true),
findbugsPublisher(disabled: true),
openTasksPublisher(disabled: true)
]) {
sh "mvn clean site"
}
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
withMaven(jdk:'jdk_1.8_latest', maven:'maven_latest', mavenLocalRepo:'.repository', options: [
artifactsPublisher(disabled: true),
junitPublisher(disabled: true),
findbugsPublisher(disabled: true),
openTasksPublisher(disabled: true)
]) {
sh "mvn clean site-deploy"
}
}
}
}
post {
always {
jenkinsNotify()
}
}
options {
buildDiscarder(logRotator(numToKeepStr:'15'))
timeout(time: 10, unit: 'MINUTES')
skipStagesAfterUnstable()
//timestamps()
disableConcurrentBuilds()
ansiColor('xterm')
}
}