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 a67b9de9d1c95de657caa9b5fa7fb9bcf9825458
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Jan 15 17:09:05 2024 -0300

    Add checkout date
---
 .ci/jenkins/Jenkinsfile.weekly-deploy | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.weekly-deploy 
b/.ci/jenkins/Jenkinsfile.weekly-deploy
index f0ae74150..355bd3c94 100644
--- a/.ci/jenkins/Jenkinsfile.weekly-deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly-deploy
@@ -42,7 +42,7 @@ pipeline {
                     }
 
                     dir(getRepoName()) {
-                        checkoutRepo()
+                        checkoutRepo(getCheckoutDate())
                     }
                 }
             }
@@ -143,7 +143,7 @@ pipeline {
 
 void sendNotification() {
     if (params.SEND_NOTIFICATION) {
-        mailer.sendMarkdownTestSummaryNotification('Deploy', 
"[${getBuildBranch()}] Kogito Apps", [env.KOGITO_CI_EMAIL_TO])
+        mailer.sendMarkdownTestSummaryNotification('Weekly Deploy', 
"[${getBuildBranch()}] Kogito Apps", [env.KOGITO_CI_EMAIL_TO])
     } else {
         echo 'No notification sent per configuration'
     }
@@ -258,3 +258,8 @@ String getLocalDeploymentFolder() {
 String getMavenRepoZipUrl() {
     return "${env.MAVEN_DEPLOY_REPOSITORY.replaceAll('/content/', 
'/service/local/').replaceFirst('/*$', '')}/content-compressed"
 }
+
+String getCheckoutDate() {
+    currentDate = sh(returnStdout: true, script: 'date -u "+%Y-%m-%d"').trim()
+    return currentDate + ' 21:00'
+}


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

Reply via email to