You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2018/12/14 10:56:18 UTC

[camel-website] branch jenkinsfile updated (2287ac0 -> 3af2e49)

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

zregvart pushed a change to branch jenkinsfile
in repository https://gitbox.apache.org/repos/asf/camel-website.git.


 discard 2287ac0  Test preview
     new 3af2e49  Test preview

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   (2287ac0)
            \
             N -- N -- N   refs/heads/jenkinsfile (3af2e49)

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 | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)


[camel-website] 01/01: Test preview

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

zregvart pushed a commit to branch jenkinsfile
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 3af2e49cfa8813aca73af7b39055edcf468debc3
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Dec 14 09:24:18 2018 +0100

    Test preview
---
 Jenkinsfile | 118 +++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 65 insertions(+), 53 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5d17f54..e66a95c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,66 +21,78 @@ def NODE_IMAGE = 'node:11'
 def YARN_OPTS = '--non-interactive --frozen-lockfile --json --cache-folder $WORKSPACE/.yarn --modules-folder node_modules'
 
 pipeline {
-    agent {
-        label "$NODE"
-    }
+  agent {
+    label "$NODE"
+  }
 
-    options {
-        buildDiscarder(
-            logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
-        )
-    }
+  options {
+    buildDiscarder(
+      logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
+    )
+  }
 
-    stages {
-        stage('Build') {
-            agent {
-                docker {
-                    label "$NODE"
-                    image "$NODE_IMAGE"
-                    reuseNode true
-                }
-            }
+  stages {
+    stage('Build') {
+      agent {
+        docker {
+          label "$NODE"
+          image "$NODE_IMAGE"
+          reuseNode true
+        }
+      }
 
-            stages {
-                stage('Theme') {
-                    steps {
-                        sh "cd antora-ui-camel && yarn $YARN_OPTS install"
-                        sh "cd antora-ui-camel && yarn $YARN_OPTS gulp pack"
-                    }
-                }
+      stages {
+        stage('Theme') {
+          steps {
+            sh "cd antora-ui-camel && yarn $YARN_OPTS install"
+            sh "cd antora-ui-camel && yarn $YARN_OPTS gulp pack"
+          }
+        }
 
-                stage('Documentation') {
-                    steps {
-                        sh "yarn $YARN_OPTS install"
-                        sh "yarn $YARN_OPTS antora generate --cache-dir $WORKSPACE/.antora --clean --redirect-facility disabled site.yml"
-                    }
-                }
+        stage('Documentation') {
+          steps {
+            sh "yarn $YARN_OPTS install"
+            sh "yarn $YARN_OPTS antora generate --cache-dir $WORKSPACE/.antora --clean --redirect-facility disabled site.yml"
+          }
+        }
 
-                stage('Website') {
-                    steps {
-                        sh "yarn $YARN_OPTS install"
-                        sh "yarn $YARN_OPTS hugo"
-                    }
-                }
-            }
+        stage('Website') {
+          steps {
+            sh "yarn $YARN_OPTS install"
+            sh "yarn $YARN_OPTS hugo"
+          }
         }
+      }
+    }
 
-        stage('Deploy') {
-            when {
-                branch 'master'
-            }
+    stage('Deploy') {
+      when {
+        branch 'master'
+      }
+
+      steps {
+        dir('deploy/staging') {
+          deleteDir()
+            sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/camel-website.git .'
+            sh 'git rm -r *'
+            sh "cp -R $WORKSPACE/public/* ."
+            sh 'git add .'
+            sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'
+            sh 'git push origin asf-site'
+        }
+      }
+    }
+
+    stage('Preview') {
+      when {
+        not {
+          branch 'master'
+        }
+      }
 
-            steps {
-                dir('deploy/staging') {
-                    deleteDir()
-                    sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/camel-website.git .'
-                    sh 'git rm -r *'
-                    sh "cp -R $WORKSPACE/public/* ."
-                    sh 'git add .'
-                    sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'
-                    sh 'git push origin asf-site'
-                }
-            }
-       }
+      steps {
+        publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'public', reportFiles: 'index.html', reportName: 'Preview', reportTitles: ''])
+      }
     }
+  }
 }