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:30:19 UTC

[felix-antora] branch main updated: another try to 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


The following commit(s) were added to refs/heads/main by this push:
     new 9707d06  another try to set up Jenkinsfile for staging/preview
9707d06 is described below

commit 9707d06bc448f2f746743e853974a6fcc4d79ac4
Author: David Jencks <dj...@apache.org>
AuthorDate: Sun Jul 18 16:30:06 2021 -0700

    another try to set up Jenkinsfile for staging/preview
---
 Jenkinsfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6948086..2e92893 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,6 @@
+//these don't seem to work.
 //def siteBranch = "asf-site"
-def siteBranch = "asf-staging"
+//def siteBranch = "asf-staging"
 
 pipeline {
     agent {
@@ -11,7 +12,7 @@ pipeline {
             steps {
                 sh 'rm -rf build'
 // clone the felix-site-pub repo
-                sh 'git clone --depth 1 --branch ${siteBranch} https://gitbox.apache.org/repos/asf/felix-site-pub.git build/site'
+                sh 'git clone --depth 1 --branch asf-staging https://gitbox.apache.org/repos/asf/felix-site-pub.git build/site'
                 dir('build/site') {
                     sh 'git rm -r .'
                 }
@@ -22,7 +23,7 @@ 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 ${siteBranch}'
+                  sh 'git push https://gitbox.apache.org/repos/asf/felix-site-pub.git asf-staging'
 	        	}
             }
         }