You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by of...@apache.org on 2020/09/26 12:42:06 UTC

[bigtop] branch jenkinsfile updated (ebb1875 -> 90e5f63)

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

oflebbe pushed a change to branch jenkinsfile
in repository https://gitbox.apache.org/repos/asf/bigtop.git.


 discard ebb1875  Jenkinsfile
     new 90e5f63  Jenkinsfile

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ebb1875)
            \
             N -- N -- N   refs/heads/jenkinsfile (90e5f63)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Jenkinsfile.site | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[bigtop] 01/01: Jenkinsfile

Posted by of...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

oflebbe pushed a commit to branch jenkinsfile
in repository https://gitbox.apache.org/repos/asf/bigtop.git

commit 90e5f6309e0b077a88fad7336fd1550ff4aac0e0
Author: Olaf Flebbe <of...@oflebbe.de>
AuthorDate: Fri Sep 25 22:02:26 2020 +0200

    Jenkinsfile
---
 Jenkinsfile.site | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/Jenkinsfile.site b/Jenkinsfile.site
new file mode 100644
index 0000000..d24b4da
--- /dev/null
+++ b/Jenkinsfile.site
@@ -0,0 +1,67 @@
+/*
+ * 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.
+ */
+def NODE = 'git-websites'
+
+pipeline {
+    agent {
+        label "$NODE"
+    }
+
+    tools { 
+        maven 'Maven 3 (latest)'
+        jdk 'JDK 11 (latest)'
+    }
+
+    options {
+        buildDiscarder(
+            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+        )
+
+        checkoutToSubdirectory('project')
+    }
+
+    stages {
+        stage('Website') {
+            steps {
+                    sh "cd $WORKSPACE/project && mvn site"
+            }
+        }
+
+
+    stage('Deploy') {
+            /* when {
+                branch 'master'
+            } */
+
+            steps {
+                dir('deploy') {
+                    deleteDir()
+                    sh 'git clone -b asf-staging https://gitbox.apache.org/repos/asf/bigtop.git .'
+                    sh 'git rm -r *'
+                    sh 'cp -r ../project/target/site/* .'
+                    sh 'date >updated.txt'
+                    writeFile file: '.asf.yaml', text: "staging:\n  whoami: asf-staging\n"
+                    sh 'git add .'
+                    sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'
+                    sh 'git push origin asf-staging'
+                }
+            }
+       }
+    }
+}