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

commit bd1a114f89d41ab564b4456cf70e570599745590
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 | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 8aedd1c..37a16f8 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,24 @@ 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 {
+                node {
+                    label "$NODE"
+                }
+            }
+
             when {
                 branch 'master'
             }

Reply via email to