1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing,
12 // software distributed under the License is distributed on an
13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, either express or implied. See the License for the
15 // specific language governing permissions and limitations
27 buildDiscarder(logRotator(numToKeepStr: '30'))
28 timeout (time: 1, unit: 'HOURS')
31 disableConcurrentBuilds()
34 booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.')
35 booleanParam(name: 'FORCE_FAIL', defaultValue: false, description: 'force a failure to test notifications.')
38 stage ('generate hbase website') {
40 maven 'Maven (latest)'
41 // this needs to be set to the jdk that ought to be used to build releases on the branch the Jenkinsfile is stored in.
42 jdk "JDK 1.8 (latest)"
48 sh '''#!/usr/bin/env bash
50 if [ "${DEBUG}" = "true" ]; then
53 if [ "${FORCE_FAIL}" = "true" ]; then
56 bash hbase/dev-support/jenkins-scripts/generate-hbase-website.sh --working-dir "${WORKSPACE}" --publish hbase
63 // Has to be relative to WORKSPACE.
64 archiveArtifacts artifacts: '*.patch.zip,hbase-*.txt'
67 mail to: 'dev@hbase.apache.org', replyTo: 'dev@hbase.apache.org', subject: "Failure: HBase Generate Website", body: """
68 Build status: ${currentBuild.currentResult}
70 The HBase website has not been updated to incorporate recent HBase changes.
72 See ${env.BUILD_URL}console