public SetFinishedCIJobStatusJob(ILogger <SetFinishedCIJobStatusJob> logger, NotificationsEnabledDb database,
                                  IBackgroundJobClient jobClient, IGithubCommitStatusReporter statusReporter) : base(logger, database,
                                                                                                                     jobClient, statusReporter)
 {
     this.logger   = logger;
     this.database = database;
 }
예제 #2
0
 public SetCLAGithubCommitStatusJob(ILogger <SetCLAGithubCommitStatusJob> logger, NotificationsEnabledDb database,
                                    IGithubCommitStatusReporter statusReporter)
 {
     this.logger         = logger;
     this.database       = database;
     this.statusReporter = statusReporter;
 }
 protected BaseCIJobManagingJob(ILogger <BaseCIJobManagingJob> logger, NotificationsEnabledDb database,
                                IBackgroundJobClient jobClient, IGithubCommitStatusReporter statusReporter)
 {
     Logger         = logger;
     Database       = database;
     JobClient      = jobClient;
     StatusReporter = statusReporter;
 }
예제 #4
0
 public CheckAndStartCIBuild(ILogger <CheckAndStartCIBuild> logger, NotificationsEnabledDb database,
                             IBackgroundJobClient jobClient, ILocalTempFileLocks localTempFileLocks,
                             IGithubCommitStatusReporter statusReporter)
 {
     this.logger             = logger;
     this.database           = database;
     this.jobClient          = jobClient;
     this.localTempFileLocks = localTempFileLocks;
     this.statusReporter     = statusReporter;
 }
예제 #5
0
 public RunJobOnServerJob(ILogger <RunJobOnServerJob> logger, IConfiguration configuration,
                          NotificationsEnabledDb database, IControlledServerSSHAccess controlledSSHAccess,
                          IExternalServerSSHAccess externalSSHAccess, IBackgroundJobClient jobClient,
                          IGithubCommitStatusReporter statusReporter, IGeneralRemoteDownloadUrls remoteDownloadUrls,
                          IRemoteResourceHashCalculator hashCalculator) : base(logger,
                                                                               database, jobClient, statusReporter)
 {
     this.configuration       = configuration;
     this.controlledSSHAccess = controlledSSHAccess;
     this.externalSSHAccess   = externalSSHAccess;
     this.remoteDownloadUrls  = remoteDownloadUrls;
     this.hashCalculator      = hashCalculator;
     cleanThreshold           = Convert.ToInt32(configuration["CI:ServerCleanUpDiskUsePercentage"]);
 }
예제 #6
0
 // TODO: could maybe use own tokens instead of always the one also used for commit status reporting
 public PostGithubCommentJob(ILogger <PostGithubCommentJob> logger, IGithubCommitStatusReporter githubAPI)
 {
     this.logger    = logger;
     this.githubAPI = githubAPI;
 }