Hg update from incoming bundle

10 views
Skip to first unread message

Salomé L.

unread,
Jul 5, 2016, 11:04:05 AM7/5/16
to go-cd
Hello 
In my pipeline I have a Mercurial material. First I run a hg incoming command which content is redirected to a bundle file and is used to detect parameters. Then I update my material ("fetch materials" is checked). 
Is it possible to change the command of fetch materials to pull from the bundle file ?
Thanks
Salomé

Aravind SV

unread,
Jul 5, 2016, 6:20:43 PM7/5/16
to go...@googlegroups.com
Hello Salomé,

On Tue, Jul 5, 2016 at 11:04 AM, Salomé L. <salome...@gmail.com> wrote:
In my pipeline I have a Mercurial material. First I run a hg incoming command which content is redirected to a bundle file and is used to detect parameters. Then I update my material ("fetch materials" is checked). 
Is it possible to change the command of fetch materials to pull from the bundle file ?

No, it's not possible to change the fetch materials command directly (it's controlled by the GoCD code). You might be able to turn off fetch materials and possibly use the environment variables that GoCD provides to run hg incoming and then hg pull. I haven't tried it, though. Feels like it should work.

Cheers,
Aravind

Salomé L.

unread,
Jul 6, 2016, 5:05:58 AM7/6/16
to go...@googlegroups.com
Thank you for your quick answer ! 

--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/8MU2N-DyP_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages