Given a differential review, I'd like to be able to obtain a link to the final, successful harbormaster build+test output. I don't see any way of doing so in conduit today?
Description
Description
Related Objects
Related Objects
- Mentioned Here
- D17603: Return task descriptions from "maniphest.search"
Event Timeline
Comment Actions
Not everything you need here has modern API methods, but I think you can get pretty close:
- Start with the revision ID (for example, on this install, I'll use D17603).
- Use differential.search to find the PHID (here, "PHID-DREV-jszgjtyub443tcjegqsu") with the "ids" constraint:
- Then, use harbormaster.querybuildables to search for the buildable, using containerPHIDs (set to ["PHID-DREV-jszgjtyub443tcjegqsu"]) plus manualBuildables (set to false). This will give you all buildables for the revision, filtering out manual/test builds. In all reasonable cases, the one with the highest ID will be the most recent one, and you can use the uri property to get a link to it:
- In this case, that gets us here: https://secure.phabricator.com/B16268
Is that what you're after?
Comment Actions
thanks, I didn't think to use containerPHIDs, I'll give this a go this coming week and let you know if it works for me. Thanks!