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-pipelines.git
The following commit(s) were added to refs/heads/kie-issues_821 by this push:
new 5974a820 Fix job checkout datetime
5974a820 is described below
commit 5974a82019b6db46117947db6248f4ca97da944b
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Wed Jan 24 15:14:19 2024 -0300
Fix job checkout datetime
---
.ci/jenkins/Jenkinsfile.weekly | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.weekly b/.ci/jenkins/Jenkinsfile.weekly
index 4f62d1be..1e4d2c53 100644
--- a/.ci/jenkins/Jenkinsfile.weekly
+++ b/.ci/jenkins/Jenkinsfile.weekly
@@ -32,10 +32,9 @@ pipeline {
// Some generated env is also defined into ./dsl/jobs.groovy file
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")
- WEEKLY_TAG = """${getBuildBranch()}-${sh(
- returnStdout: true,
- script: 'date -u "+%Y-%m-%d"'
- ).trim()}"""
+ CURRENT_DATE = getCurrentDate()
+
+ WEEKLY_TAG = """${getBuildBranch()}-${CURRENT_DATE}"""
}
stages {
@@ -190,5 +189,5 @@ String getCurrentDate() {
}
String getCheckoutDatetime() {
- return getCurrentDate() + ' 02:00' // Cut-off 02:00AM
+ return env.CURRENT_DATE + ' 02:00' // Cut-off 02:00AM
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]