Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the time plug-in Build Timestamp Plugin in Jenkins

Shulou Source: shulou.com Published: 2022-05-31 17:27:29 09月17日 Update

This article mainly shows you the "time plug-in Build Timestamp Plugin in Jenkins how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "time plug-in Build Timestamp Plugin in Jenkins how to use" this article.

STEP 1:

Manage Jenkins-> Plugin Manager-> Installed...Search for "Build Timestamp Plugin" .install with or without Restart.

STEP 2:

Manage Jenkins-> Configure System.Search for 'Build Timestamp' section, then Enable the CHECKBOX.Select the TIMEZONE, TIME format you want to setup with..Save the Page.

USAGE:

When Configuring the Build with ANT or MAVEN, Please declare a Global variable as, E.G. Btime=$ {BUILD_TIMESTAMP} (use this in your Properties box in ANT or MAVEN Build Section) use 'btime' in your Code to any String Variables etc..

The above is all the content of the article "how to use the time plug-in Build Timestamp Plugin in Jenkins". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Plug-ins Zhongshi content articles learning help easy to understand more organization knowledge editing industry information information channels channels E.G. research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Xiaomi Microsoft MariaDB