Hi harsha,
   You mean "pullResult.getFetchResult().getTrackingRefUpdates()" ? it has
the updated branch names and internal objectId list. From those info can't
get the updated artifacts.

- I found a way to get the updated files list by doing the git tree diff as
follows,
  (a) before calling  the pull keep the objectId of old local git tree
  (b) then do the git pull
  (c) then get the objectId of the new local git tree
  (d) do a git tree diff and identify the updated file list
  (e) this list gives all the updated files as a list

but here the issue is we get all the updated file list and to get the
updated artifacts, need to file path processing and construct a updated
artifact list.

Any comment on this would be appreciated.


​Thanks,​

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile    :  +94 777636406
Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Mon, Nov 3, 2014 at 4:38 PM, Harsha Thirimanna <[email protected]> wrote:

>
> After doing JGit checkout, you will get CheckoutResult and there is a
> modified list.
>
>
>
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * <http://www.apache.org/>*
> *email: **[email protected]* <[email protected]>* cell: +94 71 5186770  ,
> +94 *
> *774617784twitter: **http://twitter.com/
> <http://twitter.com/afkham_azeez>*
> *harshathirimannlinked-in: **http:
> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Nov 3, 2014 at 11:29 AM, Imesh Gunaratne <[email protected]> wrote:
>
>> Hi Roshan,
>>
>> On Fri, Oct 31, 2014 at 6:20 PM, Roshan Deniyage <[email protected]>
>> wrote:
>>
>>> Hi Devs,
>>>      Based on the previous discussion and decision, I'm in the process
>>> of developing the improvement of the subject as follows,
>>>
>>> (1) Publish a new Event called "ArtifactDeploymentCompletedEvent" to the
>>> "instance-notifier" topic of activemq of stratos side by each cartridge
>>> agent upon successful git pull.
>>>
>>
>> +1 for proposing this event, we should be able to get the list of
>> artifacts checked out from git and send it in the event.
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to