public void DeployFailed() { DeployStatus = DeployStatus.DeployFailed; Version.DeployFailed = true; VersionUtil.UpdateVersionLog(DataDirectory, Version); NotificationPublisher.PublishNotifications(new DeployFailedEvent(Name, Version)); }
public void DeployCompleted() { DeployStatus = DeployStatus.NA; VersionUtil.UpdateVersionLog(DataDirectory, Version); var unitInfo = GetUnitInfo(); NotificationPublisher.PublishNotifications((new DeployCompletedEvent(Name, Version, unitInfo.Status))); }
public void StartingDeploy(AsimovVersion newVersion, string logFileName, AsimovUser user, ParameterValues parameters) { DeployStatus = DeployStatus.Deploying; Version = new DeployedVersion() { DeployTimestamp = DateTime.Now, VersionId = newVersion.Id, VersionNumber = newVersion.Number, VersionBranch = newVersion.Branch, VersionTimestamp = newVersion.Timestamp, VersionCommit = newVersion.Commit, LogFileName = logFileName, UserId = user.UserId, UserName = user.UserName, DeployFailed = false, Parameters = parameters.GetInternalDictionary() }; NotificationPublisher.PublishNotifications(new DeployStartedEvent(Name, Version)); }