public QueueBuildRemoteJob(QueueJenkinsBuildOperation operation) { this.JobName = operation.JobName; this.BranchName = operation.BranchName; this.AdditionalParameters = operation.AdditionalParameters; this.WaitForStart = operation.WaitForStart; this.WaitForCompletion = operation.WaitForCompletion; this.ProxyRequest = operation.ProxyRequest; this.JenkinsBuildNumber = operation.JenkinsBuildNumber; this.ServerUrl = operation.ServerUrl; this.UserName = operation.UserName; this.Password = operation.Password; this.CsrfProtectionEnabled = operation.CsrfProtectionEnabled; }
public override void Deserialize(Stream stream) { this.Operation = (QueueJenkinsBuildOperation) new BinaryFormatter().Deserialize(stream); this.Operation.MessageLogged += (s, e) => this.Log(e.Level, e.Message); }
public QueueBuildRemoteJob(QueueJenkinsBuildOperation operation) { this.Operation = operation; }