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

rantunes pushed a commit to branch kie-issues_821
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git

commit 4044043342f8f842f48a2e06807fa88a48bf2577
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Jan 15 17:13:57 2024 -0300

    Fix git checkout
---
 .ci/jenkins/Jenkinsfile.weekly-deploy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.ci/jenkins/Jenkinsfile.weekly-deploy 
b/.ci/jenkins/Jenkinsfile.weekly-deploy
index 355bd3c94..c0ab32023 100644
--- a/.ci/jenkins/Jenkinsfile.weekly-deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly-deploy
@@ -161,7 +161,7 @@ void checkoutRepo(String date = '') {
     deleteDir()
     checkout(githubscm.resolveRepository(getRepoName(), getGitAuthor(), 
getBuildBranch(), false, getGitAuthorCredsId()))
     if (date) {
-        sh "git checkout 'git rev-list -n 1 --before=\"${date}\" main'"
+        sh "git checkout `git rev-list -n 1 --before=\"${date}\" 
${getBuildBranch()}`"
     }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to