-
Task
-
Resolution: Done
-
Major
-
None
-
Both Windows and Linux.
Dear Team,
Could you let me know how can I get Build Start time, End time, Duration of a build in Jenkins for each Job. Means I wanted to print the same on console out at the end, So please help me with this.
My Jenkins Master Server Version – 2.46.2 LTS version.
-Mohan
[JENKINS-46556] Build Start time End time and Duration of a build in Jenkins
Issue Type | Original: New Feature [ 2 ] | New: Task [ 3 ] |
Resolution | New: Done [ 10000 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Sorry for the delay Mohan. My JIRA emails weren't coming through.
If I understand correctly, you want to add a script to the build which will output these details?
You can retrieve the information in XML or JSON format with the Remote access API. Start by opening a build in your browser, then adding /api to the URL to see the instructions. For example, to download the JSON format during the build, access $BUILD_URL/api/json.
Hope this helps.