You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/04/26 16:04:37 UTC

[comdev-site] branch preview/test3 updated: Bug fixes

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

sebb pushed a commit to branch preview/test3
in repository https://gitbox.apache.org/repos/asf/comdev-site.git


The following commit(s) were added to refs/heads/preview/test3 by this push:
     new 0ce88d0  Bug fixes
0ce88d0 is described below

commit 0ce88d009e059179acbf732a4a0905f5802b2330
Author: Sebb <se...@apache.org>
AuthorDate: Wed Apr 26 17:04:28 2023 +0100

    Bug fixes
---
 Jenkinsfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 3e39f86..0a56fc1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -88,8 +88,9 @@ pipeline {
                     // Checkout branch with generated content
                     sh """
                         git checkout ${DEPLOY_BRANCH} || {
-                          echo "branch ${DEPLOY_BRANCH} is new"
-                          git checkout -b ${DEPLOY_BRANCH} --orphan
+                          echo "branch ${DEPLOY_BRANCH} is new; create basic site"
+                          git checkout --orphan ${DEPLOY_BRANCH}
+                          # assume we have an asf.yaml file
                           git checkout ${BRANCH_NAME} -- .asf.yaml -f && git add .asf.yaml -f
                         }
                         git pull origin ${DEPLOY_BRANCH}