Dependencies timestamp info
Is it any way to access the list of dependencies and their build start timestamp from the script triggered by TeamCity? The goal is to find the earliest starting timestamp of all dependencies used in the build.
Please sign in to leave a comment.
Hi
Do you mean snapshot dependencies? Then it can be obtainedby REST API - each build contails time info, and links to its snapshot dependencies.
For artifact dependencies that's not so easy. Would be great if you explain how are you going to use this data.
Thanks
Michael
I mean artifact dependencies.
We have an Integration build that uses the artifact dependencies from 7 other individual builds.
It’s very important to determine the cut-off time of all dependencies.
For now the only option is to click on every dependency hyperlink from ‘Dependencies’ tab and log the start time. It will be much more convenient if we could use a script to determine the earliest start timestamp out of all dependencies.
Thanks so much for your help.
Hi
At the moment the only solution I could suggest is to put a timestamp to a special file within each build, get these files as additional artifacts, and evaluate the content.
Could yo provie an example, what kind of decisions do you make based on this time data? Cancel a build if dependencies are too old?
Thanks
Michael
Hi Michael,
Knowing the earliest timestamp has two purposes:
1. To determine whether the fix is present in this Ingegration testing for QA to proceed
2. Reporting tool displaying timestamp of all artifacts for QA to determine the cutoff time
This build is the Integration build that uses latest successful builds of multiple components.
May be there is a way to get timestamp from the script by downloading artifacts using artifacts’ URL?
At least original file timestamp at time it was posted to Artifacts, because after downloading it has a current timestamp.
Thanks,
NT
Hi
Yes, you can examine HTTP headers of artifact URL, we preserve Last Modified value.
Michael