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 b5467ed25a9d56b6f1d268a40676556556a782fe
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Jan 15 17:23:35 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 c0ab32023..22f23aab5 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}\" 
${getBuildBranch()}`"
+        sh "git fetch && 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