You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2020/08/12 04:04:32 UTC

[hbase] 01/01: HBASE-24869 migrate website generation to new asf jenkins

This is an automated email from the ASF dual-hosted git repository.

busbey pushed a commit to branch HBASE-24869
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 6812e806a3f7c6677755dd2c520225dbd9c97d12
Author: Sean Busbey <bu...@apache.org>
AuthorDate: Tue Aug 11 22:48:13 2020 -0500

    HBASE-24869 migrate website generation to new asf jenkins
---
 .../generate-hbase-website.Jenkinsfile             | 75 ++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile b/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile
new file mode 100644
index 0000000..c04c1c6
--- /dev/null
+++ b/dev-support/jenkins-scripts/generate-hbase-website.Jenkinsfile
@@ -0,0 +1,75 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+pipeline {
+  agent {
+    node {
+      label 'git-websites'
+    }
+  }
+  triggers {
+    cron('@daily')
+  }
+  options {
+    buildDiscarder(logRotator(numToKeepStr: '30'))
+    timeout (time: 1, unit: 'HOURS')
+    timestamps()
+    skipDefaultCheckout()
+    disableConcurrentBuilds()
+  }
+  parameters {
+    booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.')
+  }
+  stages {
+    stage ('generate hbase website') {
+      tools {
+        maven 'Maven (latest)'
+        // this needs to be set to the jdk that ought to be used to build releases on the branch the Jenkinsfile is stored in.
+        jdk "JDK 1.8 (latest)"
+      }
+      steps {
+        dir('hbase') {
+          checkout scm
+        }
+        sh '''#!/usr/bin/env bash
+          set -e
+          if [ "${DEBUG}" = "true" ]; then
+            set -x
+          fi
+          bash hbase/dev-support/jenkins-scripts/generate-hbase-website.sh --working-dir "${WORKSPACE}" --publish hbase
+'''
+      }
+    }
+  }
+  post {
+    always {
+      // Has to be relative to WORKSPACE.
+      archiveArtifacts artifacts: '*.patch.zip,hbase-*.txt'
+    }
+    failure {
+      mail to: 'dev@hbase.apache.org', replyTo: 'dev@hbase.apache.org', subject: '${BUILD_STATUS}: HBase Generate Website', body: '''
+Build status: ${BUILD_STATUS}
+
+The HBase website has not been updated to incorporate HBase commit ${CURRENT_HBASE_COMMIT}.
+
+See ${BUILD_URL}console
+'''
+    }
+    cleanup {
+      deleteDir
+    }
+  }
+}