Getting the last successful build artefacts

613 views
Skip to first unread message

Angshuman Sarkar

unread,
May 9, 2014, 2:43:52 AM5/9/14
to go...@googlegroups.com
I would like to download artefacts (using wget) from a specific build pipeline stage.
We can get the "latest" or for a specific "build number". I would like to know how to find the last successful build artefacts,( in case the latest has failed)

thanks 

Arika Goyal

unread,
May 9, 2014, 5:04:27 AM5/9/14
to Angshuman Sarkar, go...@googlegroups.com
Hi Angshuman,

You can use feeds api to achieve this. To be specific, you can parse http://[server]/go/api/pipelines/[pipeline_name]/stages.xml to find out which is the last successful stage run of your pipeline and then fetch artifacts from it. However, please be aware of this limitation of feeds api.


- Arika


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Angshuman Sarkar

unread,
May 12, 2014, 5:26:34 AM5/12/14
to go...@googlegroups.com
Thanks Arika. Does the feed-api provide me a "prev-archive" link to navigate through the change feeds over time? 25 entries limit is probably fine in our case. We will probably write a simple script to do this. or may be this could be an api extension.


--
Angshuman Sarkar
Y! themenhirman

Ketan Padegaonkar

unread,
May 12, 2014, 11:50:33 AM5/12/14
to Angshuman Sarkar, go...@googlegroups.com
Yes – the API is atom spec compliant where possible. There's a <link rel="next" /> that'll point you to the next/previous page if there is any.

- Ketan

Reply all
Reply to author
Forward
0 new messages