You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by bd...@apache.org on 2023/04/21 09:11:43 UTC

[comdev-site] branch preview/test0421 updated: Try branch creation/update again

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

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


The following commit(s) were added to refs/heads/preview/test0421 by this push:
     new c5d282d  Try branch creation/update again
c5d282d is described below

commit c5d282db46833f8945ebc5a6c8e832581dbb4456
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Apr 21 11:11:34 2023 +0200

    Try branch creation/update again
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index e074086..faa88e9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -120,7 +120,7 @@ pipeline {
                 script {
                     // Checkout or create branch with generated content
                     sh """
-                        git checkout -B ${STAGING_BRANCH}
+                        git checkout ${STAGING_BRANCH} || git checkout -b ${STAGING_BRANCH}
                         git pull origin ${STAGING_BRANCH} || echo "branch ${STAGING_BRANCH} is new"
                     """