AV-Project dependencies
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 :)
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
Support Staff 1 Posted by Feodor Fitsner on 19 Feb, 2015 02:22 AM
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 Posted by Pure Krome on 19 Feb, 2015 02:39 AM
really specific? i thought that would be a common thing :/ (we used that from TeamCity, btw).
Support Staff 3 Posted by Feodor Fitsner on 19 Feb, 2015 02:52 AM
How does it work/get configured in TC?
4 Posted by Pure Krome on 24 Feb, 2015 12:09 AM
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.
Support Staff 5 Posted by Feodor Fitsner on 24 Feb, 2015 05:05 PM
What if dependent project is "pending"?
6 Posted by Pure Krome on 24 Feb, 2015 09:38 PM
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 .. ??
Support Staff 7 Posted by Feodor Fitsner on 24 Feb, 2015 11:32 PM
Yeah, I meant "running".
-Feodor
8 Posted by Pure Krome on 24 Feb, 2015 11:42 PM
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
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.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.