Azure DevOps conditional REST API gate trigger only once if OK

%3CLINGO-SUB%20id%3D%22lingo-sub-2725727%22%20slang%3D%22en-US%22%3EAzure%20DevOps%20conditional%20REST%20API%20gate%20trigger%20once%20once%20if%20OK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2725727%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20add%20a%20health%20check%20to%20my%20azure%20devops%20pipeline.%20In%20order%20to%20do%20so%20I'm%20using%20a%20gate%20as%20a%20pre-condition%20to%20my%20deploy%2C%20which%20invokes%20a%20REST%20API%20which%20passes%20if%20OK%20is%20returned.%3C%2FP%3E%3CP%3EThis%20is%20what%20the%20current%20setup%20looks%20like%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Untitled.png%22%20style%3D%22width%3A%20561px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308357i0FFDD85CAD54807F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Untitled.png%22%20alt%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETake%20into%20account%20that%20%22The%20time%20between%20re-evaluation%20of%20gates%22%20must%20be%20at%20least%205%20minutes%20and%20%22The%20timeout%20after%20which%20gates%20fail%22%20must%20be%20at%20least%206%2C%20it%20won't%20allow%20me%20to%20set%20it%20to%200.%3C%2FP%3E%3CP%3ESo%20this%20setup%20kinda%20works%2C%20but%20it%20checks%20the%20REST%20API%20twice%20for%20some%20reason%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Untitled2.png%22%20style%3D%22width%3A%20593px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308358iCEAD46601D40AEEB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Untitled2.png%22%20alt%3D%22Untitled2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20would%20expect%20it%20to%20just%20carry%20on%20after%20the%20first%20check%20returns%20OK.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I'm trying to add a health check to my azure devops pipeline. In order to do so I'm using a gate as a pre-condition to my deploy, which invokes a REST API which passes if OK is returned.

This is what the current setup looks like:

 
 

Untitled.png

 

Take into account that "The time between re-evaluation of gates" must be at least 5 minutes and "The timeout after which gates fail" must be at least 6, it won't allow me to set it to 0.

So this setup kinda works, but it checks the REST API twice for some reason:

 

Untitled2.png

I would expect it to just carry on after the first check returns OK.

0 Replies