This plugin provides date and time-related variables for TeamCity builds. It allows you to access the current date and time components in your build configurations, which can be useful for versioning, naming artifacts, or other time-dependent operations.
We are TeamCity Certified and YouTrack Certified developers, specializing in custom solutions for JetBrains products.
👉🏼 Visit our website to learn more about our services.
The plugin adds the following variables to your TeamCity builds:
Variable | Description | Example |
---|---|---|
teamcity.date.year |
Current year | 2023 |
teamcity.date.month |
Current month (zero-padded) | 05 |
teamcity.date.day |
Current day of month (zero-padded) | 17 |
teamcity.date.hour |
Current hour in 24h format (zero-padded) | 14 |
teamcity.date.minute |
Current minute (zero-padded) | 30 |
teamcity.date.second |
Current second (zero-padded) | 45 |
teamcity.date.timestamp |
Current Unix timestamp (seconds since epoch) | 1684331445 |
teamcity.date.iso |
Current date and time in ISO 8601 format | 2023-05-17T14:30:45+02:00 |
- TeamCity 2025.03 or later
- Java 8 or later
- Download the latest release from the marketplace
- Go to the TeamCity Administration area
- Navigate to Plugins List
- Click "Upload plugin zip"
- Select the downloaded zip file
- Restart TeamCity server
%env.BUILD_NUMBER%.%teamcity.date.year%%teamcity.date.month%%teamcity.date.day%
echo "Build created on %teamcity.date.year%-%teamcity.date.month%-%teamcity.date.day% at %teamcity.date.hour%:%teamcity.date.minute%"
This plugin is built using Maven. To build it:
mvn clean package
The resulting plugin zip file will be in the target
directory.
If you have any questions or need support, feel free to reach out to us via e-mail or visit our website.