AV-Project dependencies

Pure Krome's Avatar

Pure Krome

19 Feb, 2015 01:29 AM

Hi!

we have lots of AV projects (yay!). Some of those are dependent on others .. so .. If one fails, the others shouldn't run (and be cancelled).

For example:

when upstream/dev accepts a PR, the following AV projects get queued (and we're using priorities too, btw).
1- Website_A (priority 1)
2- Website_B (P 2)
3-API website (P3)
... etc.

If #1 dies, then we don't want to run #2, #3, etc... cancel those queued items.
If #1 passes but #2 dies .. then #3, etc will cancel. Nothing we can do about #1 cause it passed. that's fine.

Is this possible now .. or .. can I create an issue on GH :)

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Feb, 2015 02:22 AM

    Feodor Fitsner's Avatar

    Well, I don't think an issue will help here as the case is very specific :) ...and there is custom logic which is really hard to generalize

    Why wouldn't you try using AV REST API for that and see if that works: http://www.appveyor.com/docs/api/projects-builds#cancel-build

    You can easily call it using PS on "build faild" event of Website_A build.

  2. 2 Posted by Pure Krome on 19 Feb, 2015 02:39 AM

    Pure Krome's Avatar

    really specific? i thought that would be a common thing :/ (we used that from TeamCity, btw).

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Feb, 2015 02:52 AM

    Feodor Fitsner's Avatar

    How does it work/get configured in TC?

  4. 4 Posted by Pure Krome on 24 Feb, 2015 12:09 AM

    Pure Krome's Avatar

    I've uninstalled TC once we started using AV :/

    I just think there was a drop down box in each project, which listed the other projects. So i guess, when the project started, it checked if the 'dependent project' was green or not. if not, it didn't run.

  5. Support Staff 5 Posted by Feodor Fitsner on 24 Feb, 2015 05:05 PM

    Feodor Fitsner's Avatar

    What if dependent project is "pending"?

  6. 6 Posted by Pure Krome on 24 Feb, 2015 09:38 PM

    Pure Krome's Avatar

    Pending? not sure I understand?

    In AV, a project is idle, queued or running. regardless of the dependencies, once a parent fails, the chidren all get cancelled. That's how i see it .. ??

  7. Support Staff 7 Posted by Feodor Fitsner on 24 Feb, 2015 11:32 PM

    Feodor Fitsner's Avatar

    Yeah, I meant "running".

    -Feodor

  8. 8 Posted by Pure Krome on 24 Feb, 2015 11:42 PM

    Pure Krome's Avatar

    ah. can't you just fire off a cancel? it it's queued, then it's now de-queued. else it's stopped and de-queued.

    It could happen if you have

    • multiple agents running
    • you manually start a child project

    and then the parent-or-a-child-dependency project is triggered via webhook to queue/run.

    I can't remember if this dependency thing worked when we manually started a project, in TC. eg. we manually kicked off a run of Child_B .. which has a depdency of Parent_A ... i can't remember if Parent_A auto-queued up and ran first. I don't think it did. I think it only happened for webhooks, etc.

  9. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Jan, 2019 06:22 PM
23 Jan, 2019 11:15 AM
23 Jan, 2019 07:15 AM
22 Jan, 2019 08:41 PM
22 Jan, 2019 08:28 PM