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/09/26 18:09:10 UTC

[camel] branch website updated (a37c479 -> df77ef7)

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

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


 discard a37c479  CAMEL-11492 Test website Jenkinsfile
     new df77ef7  CAMEL-11492 Test website 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   (a37c479)
            \
             N -- N -- N   refs/heads/website (df77ef7)

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


[camel] 01/01: CAMEL-11492 Test website Jenkinsfile

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

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

commit df77ef70f5ed09d1be56e48ba896a59828493af2
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Tue Jul 17 12:01:34 2018 +0200

    CAMEL-11492 Test website Jenkinsfile
---
 Jenkinsfile | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 81 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a34301d..fc479d2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,8 +17,10 @@
  * under the License.
  */
 
+def BUILD_WEBSITE = !'false'.equalsIgnoreCase(env.BUILD_WEBSITE)
 def LOCAL_REPOSITORY = env.LOCAL_REPOSITORY ?: '/home/jenkins/jenkins-slave/maven-repositories/0'
 def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu'
+def WEBSITE_AGENT_LABEL = env.WEBSITE_AGENT_LABEL ?: 'git-websites'
 def JDK_NAME = env.JDK_NAME ?: 'JDK 1.8 (latest)'
 
 def MAVEN_PARAMS = "-U -B -e -fae -V -Dmaven.repo.local=${LOCAL_REPOSITORY} -Dnoassembly -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2"
@@ -42,10 +44,57 @@ pipeline {
 
     stages {
 
+        stage('Website') {
+            when {
+                beforeAgent true
+                expression { BUILD_WEBSITE }
+                anyOf {
+                    changeset '**/*.adoc'
+                    changeset 'camel-website/**'
+                    changeset 'docs/**'
+                }
+            }
+
+            agent {
+                node {
+                    label WEBSITE_AGENT_LABEL 
+                }
+            }
+
+            options {
+                skipDefaultCheckout()
+            }
+
+            steps {
+                dir('camel') {
+                    checkout scm
+                    sh './mvnw -U -B -V -f camel-website'
+                }
+
+                dir('site') {
+                    checkout([ branches: [name: 'asf-site'] ])
+                    sh 'cp -R ../camel/camel-website/public/* .'
+                    sh 'git add .'
+                    sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'
+                    sh 'git push origin asf-site'
+                }
+            }
+        }
+
         stage('Build & Deploy') {
+
             when {
+                beforeAgent true
                 branch 'master'
+                not {
+                    anyOf {
+                        changeset '**/*.adoc'
+                        changeset 'camel-website/**'
+                        changeset 'docs/**'
+                    }
+                }
             }
+
             steps {
                 sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean deploy"
             }
@@ -53,16 +102,36 @@ pipeline {
 
         stage('Build') {
             when {
+                beforeAgent true
                 not {
-                    branch 'master'
+                    allOf {
+                        branch 'master'
+                        anyOf {
+                            changeset '**/*.adoc'
+                            changeset 'camel-website/**'
+                            changeset 'docs/**'
+                        }
+                    }
                 }
             }
+
             steps {
                 sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean install"
             }
         }
 
         stage('Checks') {
+            when {
+                beforeAgent true
+                not {
+                    anyOf {
+                        changeset '**/*.adoc'
+                        changeset 'camel-website/**'
+                        changeset 'docs/**'
+                    }
+                }
+            }
+
             steps {
                 sh "./mvnw $MAVEN_PARAMS -Psourcecheck -Dcheckstyle.failOnViolation=false checkstyle:check"
             }
@@ -74,6 +143,17 @@ pipeline {
         }
 
         stage('Test') {
+            when {
+                beforeAgent true
+                not {
+                    anyOf {
+                        changeset '**/*.adoc'
+                        changeset 'camel-website/**'
+                        changeset 'docs/**'
+                    }
+                }
+            }
+
             steps {
                 sh "./mvnw $MAVEN_PARAMS -Dmaven.test.failure.ignore=true test"
             }