From commits-return-10-archive-asf-public=cust-asf.ponee.io@zipkin.apache.org Sun Nov 4 14:21:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C6B7F180669 for ; Sun, 4 Nov 2018 14:21:08 +0100 (CET) Received: (qmail 98557 invoked by uid 500); 4 Nov 2018 13:21:08 -0000 Mailing-List: contact commits-help@zipkin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zipkin.apache.org Delivered-To: mailing list commits@zipkin.apache.org Received: (qmail 98548 invoked by uid 99); 4 Nov 2018 13:21:07 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2018 13:21:07 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6A7A782A55; Sun, 4 Nov 2018 13:21:07 +0000 (UTC) Date: Sun, 04 Nov 2018 13:21:07 +0000 To: "commits@zipkin.apache.org" Subject: [incubator-zipkin-website] branch asf-site updated: Automatic site generation from 8aee5c5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <154133766739.18956.1938199497554587788@gitbox.apache.org> From: git-site-role@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-zipkin-website X-Git-Refname: refs/heads/asf-site X-Git-Reftype: branch X-Git-Oldrev: 8881279c8273ed94cd837cf5b960bceb141f05bd X-Git-Newrev: 4a4dfb13be556cb756eff7b72f57cee1de825ce3 X-Git-Rev: 4a4dfb13be556cb756eff7b72f57cee1de825ce3 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-website.git The following commit(s) were added to refs/heads/asf-site by this push: new 4a4dfb1 Automatic site generation from 8aee5c5 4a4dfb1 is described below commit 4a4dfb13be556cb756eff7b72f57cee1de825ce3 Author: jenkins AuthorDate: Sun Nov 4 13:21:05 2018 +0000 Automatic site generation from 8aee5c5 --- Jenkinsfile | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..4068696 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,99 @@ +pipeline { + agent { + label 'git-websites' + } + + options { + buildDiscarder(logRotator(numToKeepStr: '10')) + timestamps() + } + + triggers { + pollSCM('H/15 * * * *') + } + + stages { + stage('SCM Checkout') { + steps { + deleteDir() + checkout scm + } + } + + stage('Check environment') { + steps { + sh 'env' + sh 'pwd' + sh 'ls' + sh 'alias' + sh 'git config --list --local' + sh 'git config --list --global' + sh 'git status' + } + } + + stage('Install Jekyll') { + steps { + sh ''' + . "${rvm_path}/scripts/rvm" + set -e + gem install bundler + bundle install + ''' + } + } + + stage('Build site') { + steps { + sh ''' + . "${rvm_path}/scripts/rvm" + set -e + bundle exec jekyll build --verbose + ''' + sh 'ls -lR _site' + } + } + + stage('Publish') { + steps { + sh ''' + set -xeuo pipefail + + srchash="$(git rev-parse --short HEAD)" + commitmsg="Automatic site generation from ${srchash}" + + builddir="$(mktemp -d)" + mv _site "${builddir}/" + ls -lR "${builddir}/_site/" + + git fetch origin + git reset --hard + git checkout asf-site + git log -3 + git status + + rsync -avrh --delete --exclude=".git" "${builddir}/_site/" ./ + git status + git diff + + git add . + + if [ -z "$(git status --porcelain)" ]; then + echo 'No changes to commit/push' + else + git commit -m "$commitmsg" + git pull --rebase + git log asf-site -3 + git push origin asf-site + fi + ''' + } + } + } + + post { + always { + deleteDir() + } + } +}