You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by dj...@apache.org on 2021/07/18 23:23:06 UTC

[felix-antora] 02/02: set up Jenkinsfile for staging/preview

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

djencks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/felix-antora.git

commit 91adc76b83c882edd240f440b7ca00bd32d4ee4b
Author: David Jencks <dj...@apache.org>
AuthorDate: Sun Jul 18 16:22:38 2021 -0700

    set up Jenkinsfile for staging/preview
---
 Jenkinsfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 175427b..6948086 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,3 +1,6 @@
+//def siteBranch = "asf-site"
+def siteBranch = "asf-staging"
+
 pipeline {
     agent {
             label 'git-websites'
@@ -8,7 +11,7 @@ pipeline {
             steps {
                 sh 'rm -rf build'
 // clone the felix-site-pub repo
-                sh 'git clone --depth 1 --branch asf-site https://gitbox.apache.org/repos/asf/felix-site-pub.git build/site'
+                sh 'git clone --depth 1 --branch ${siteBranch} https://gitbox.apache.org/repos/asf/felix-site-pub.git build/site'
                 dir('build/site') {
                     sh 'git rm -r .'
                 }
@@ -19,8 +22,8 @@ pipeline {
                 dir('build/site') {
 		          sh 'git add .'
 		          sh 'echo `git commit -m "site build"`'
-//                  sh 'git push https://gitbox.apache.org/repos/asf/felix-site-pub.git asf-site'
-		}
+                  sh 'git push https://gitbox.apache.org/repos/asf/felix-site-pub.git ${siteBranch}'
+	        	}
             }
         }
     }