From 06d6f7716ef92f1441d3cab38c37c884cb804e0a Mon Sep 17 00:00:00 2001 From: kdletters Date: Sat, 2 May 2026 19:34:11 +0800 Subject: [PATCH] Use compatible timestamp wrapper in Jenkins pipelines --- jenkins/Jenkinsfile.production-api-build | 3 ++- jenkins/Jenkinsfile.production-api-deploy | 3 ++- jenkins/Jenkinsfile.production-database-export | 3 ++- jenkins/Jenkinsfile.production-database-import | 3 ++- jenkins/Jenkinsfile.production-full-build-and-deploy | 3 ++- jenkins/Jenkinsfile.production-server-provision | 3 ++- jenkins/Jenkinsfile.production-stdb-module-build | 3 ++- jenkins/Jenkinsfile.production-stdb-module-publish | 3 ++- jenkins/Jenkinsfile.production-web-build | 3 ++- jenkins/Jenkinsfile.production-web-deploy | 3 ++- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/jenkins/Jenkinsfile.production-api-build b/jenkins/Jenkinsfile.production-api-build index 85156be8..59ca6689 100644 --- a/jenkins/Jenkinsfile.production-api-build +++ b/jenkins/Jenkinsfile.production-api-build @@ -5,7 +5,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-api-deploy b/jenkins/Jenkinsfile.production-api-deploy index d5601910..c964eac0 100644 --- a/jenkins/Jenkinsfile.production-api-deploy +++ b/jenkins/Jenkinsfile.production-api-deploy @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-database-export b/jenkins/Jenkinsfile.production-database-export index 94294431..d4bb49ad 100644 --- a/jenkins/Jenkinsfile.production-database-export +++ b/jenkins/Jenkinsfile.production-database-export @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-database-import b/jenkins/Jenkinsfile.production-database-import index 8cb92c53..82276882 100644 --- a/jenkins/Jenkinsfile.production-database-import +++ b/jenkins/Jenkinsfile.production-database-import @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-full-build-and-deploy b/jenkins/Jenkinsfile.production-full-build-and-deploy index 47d59db6..efa77f33 100644 --- a/jenkins/Jenkinsfile.production-full-build-and-deploy +++ b/jenkins/Jenkinsfile.production-full-build-and-deploy @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-server-provision b/jenkins/Jenkinsfile.production-server-provision index a3d11ffe..f423091a 100644 --- a/jenkins/Jenkinsfile.production-server-provision +++ b/jenkins/Jenkinsfile.production-server-provision @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-stdb-module-build b/jenkins/Jenkinsfile.production-stdb-module-build index dea4ba7b..fec719b2 100644 --- a/jenkins/Jenkinsfile.production-stdb-module-build +++ b/jenkins/Jenkinsfile.production-stdb-module-build @@ -5,7 +5,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-stdb-module-publish b/jenkins/Jenkinsfile.production-stdb-module-publish index 2eaed5d0..a8a4ae0e 100644 --- a/jenkins/Jenkinsfile.production-stdb-module-publish +++ b/jenkins/Jenkinsfile.production-stdb-module-publish @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-web-build b/jenkins/Jenkinsfile.production-web-build index c19f5e49..4e09274d 100644 --- a/jenkins/Jenkinsfile.production-web-build +++ b/jenkins/Jenkinsfile.production-web-build @@ -5,7 +5,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) } diff --git a/jenkins/Jenkinsfile.production-web-deploy b/jenkins/Jenkinsfile.production-web-deploy index b61fc021..5ca0b6e5 100644 --- a/jenkins/Jenkinsfile.production-web-deploy +++ b/jenkins/Jenkinsfile.production-web-deploy @@ -3,7 +3,8 @@ pipeline { options { disableConcurrentBuilds() - timestamps() + skipDefaultCheckout(true) + wrap([$class: 'TimestamperBuildWrapper']) buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20')) }