You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2022/04/07 06:19:55 UTC

[struts-site] branch test-build updated: Fixes comment stage

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

lukaszlenart pushed a commit to branch test-build
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/test-build by this push:
     new 0641bf6e2 Fixes comment stage
0641bf6e2 is described below

commit 0641bf6e248b96c3f0401e53bfd97d21bd219768
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Apr 7 08:19:50 2022 +0200

    Fixes comment stage
---
 Jenkinsfile | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index fcb47cd92..10fa35b73 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,7 +1,9 @@
 #!groovy
 
 pipeline {
-  agent none
+  agent {
+    label 'git-websites'
+  }
   options {
     buildDiscarder logRotator(numToKeepStr: '5')
     timeout(40)
@@ -10,9 +12,6 @@ pipeline {
   }
   stages {
     stage('Build a staged website') {
-      agent {
-        label 'git-websites'
-      }
       environment {
         RUBY_PATH="${env.WORKSPACE_TMP}/.rvm"
         GEM_HOME="${RUBY_PATH}/gems"
@@ -51,11 +50,9 @@ pipeline {
           git push asf asf-staging
           git checkout master
         """
-      }
-    }
-    stage('Comment on PR') {
-      if (env.CHANGE_ID) {
-        pullRequest.comment("Staged site is ready at https://struts.staged.apache.org/")
+        if (env.CHANGE_ID) {
+          pullRequest.comment("Staged site is ready at https://struts.staged.apache.org/")
+        }
       }
     }
   }