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

rlenferink pushed a commit to branch feature/gh-source-test
in repository https://gitbox.apache.org/repos/asf/celix-site.git


The following commit(s) were added to refs/heads/feature/gh-source-test by this 
push:
     new 84225f8  Test using the GitHub branch source
84225f8 is described below

commit 84225f80a6b1ff42c9145d7a42743afd0e7420a8
Author: Roy Lenferink <[email protected]>
AuthorDate: Sun Feb 26 16:02:53 2023 +0100

    Test using the GitHub branch source
---
 Jenkinsfile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2fb3391..e7fd8a2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -25,6 +25,7 @@ pipeline {
     environment {
         HUGO_VERSION = '0.63.2'
         DEPLOY_BRANCH = 'asf-site'
+        REPO_URL = 'https://github.com/apache/celix-site.git'
     }
 
     stages {
@@ -66,12 +67,8 @@ pipeline {
                 script {
                     // Checkout branch with generated content
                     sh """
-                        git remote -v
-                        git branch -a
-                        git config --get remote.origin.fetch
-
-                        git checkout ${DEPLOY_BRANCH}
-                        git pull origin ${DEPLOY_BRANCH}
+                        git fetch --no-tags --progress -- ${REPO_URL} 
+refs/heads/${DEPLOY_BRANCH}:refs/remotes/origin/${DEPLOY_BRANCH}
+                        git checkout -b ${DEPLOY_BRANCH} 
origin/${DEPLOY_BRANCH}
                     """
                     
                     // Remove the content of the target branch and replace it 
with the content of the temp folder

Reply via email to