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

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


The following commit(s) were added to refs/heads/pnp by this push:
     new adf70a8  CAMEL-11500: cleanup the build
adf70a8 is described below

commit adf70a88213d4a19a012ab0aecdc9544364aeda9
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Mon Jan 7 21:50:21 2019 +0100

    CAMEL-11500: cleanup the build
    
    Adds timestamps, color, unifies the docker build configuration.
---
 Jenkinsfile | 31 ++++++++++++++-----------------
 1 file changed, 14 insertions(+), 17 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 8aedd1c..33ec54e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,11 @@ def NODE = 'git-websites'
 
 pipeline {
     agent {
-        label "$NODE"
+        dockerfile {
+            dir 'camel-website'
+            label "$NODE"
+            reuseNode true
+        }
     }
 
     options {
@@ -28,6 +32,10 @@ pipeline {
             logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10')
         )
 
+        timestamps()
+
+        ansiColor('xterm')
+
         checkoutToSubdirectory('camel-website')
     }
 
@@ -40,34 +48,23 @@ pipeline {
 
     stages {
         stage('Theme') {
-            agent {
-                dockerfile {
-                    dir 'camel-website'
-                    label "$NODE"
-                    reuseNode true
-                }
-            }
-
             steps {
                 sh "cd $WORKSPACE/camel-website/antora-ui-camel && yarn 
--non-interactive --frozen-lockfile"
             }
         }
 
         stage('Website') {
-            agent {
-                dockerfile {
-                    dir 'camel-website'
-                    label "$NODE"
-                    reuseNode true
-                }
-            }
-
             steps {
                 sh "cd $WORKSPACE/camel-website && yarn --non-interactive 
--frozen-lockfile"
             }
         }
 
         stage('Deploy') {
+            agent {
+                label "$NODE"
+                reuseNode true
+            }
+
             when {
                 branch 'master'
             }

Reply via email to