public BuildCondition ShouldRunIntegration() { BuildCondition buildCondition = InnerTrigger.ShouldRunIntegration(); if (buildCondition == BuildCondition.NoBuild) { return(buildCondition); } IntegrationCompleted(); // reset inner trigger try { ProjectStatus currentStatus = GetCurrentProjectStatus(); if (lastStatus == null) { lastStatus = currentStatus; return(BuildCondition.NoBuild); } if (currentStatus.LastBuildDate > lastStatus.LastBuildDate && currentStatus.BuildStatus == TriggerStatus) { lastStatus = currentStatus; return(buildCondition); } } catch (Exception ex) { } return(BuildCondition.NoBuild); }
private bool ShouldRunIntegration() { lock (syncCheck) { if (this.ShouldForceBuild) { this.ShouldForceBuild = false; this.IntegrationResult.BuildCondition = BuildCondition.ForceBuild; return(true); } BuildCondition ShouldIntegration = _trigger.ShouldRunIntegration(); if (ShouldIntegration != BuildCondition.NoBuild) { try { this.IntegrationResult = resultManager.StartNewIntegration(); this.IntegrationResult.BuildCondition = ShouldIntegration; return(true); } catch (Exception ex) { Log.Error(ex); return(false); } } return(false); } }
public BuildCondition ShouldRunIntegration() { DateTime now = dtProvider.Now; if (IsInFilterRange(now)) { return(BuildCondition); } return(InnerTrigger.ShouldRunIntegration()); }
private bool ShouldRunIntegration() { if (this.ShouldForceBuild) { this.ShouldForceBuild = false; this.IntegrationResult.BuildCondition = BuildCondition.ForceBuild; return(true); } BuildCondition ShouldIntegration = _trigger.ShouldRunIntegration(); if (ShouldIntegration != BuildCondition.NoBuild) { this.IntegrationResult = resultManager.StartNewIntegration(); this.IntegrationResult.BuildCondition = ShouldIntegration; return(true); } return(false); }