public void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDependencyId) { m_caller.DeleteFormat("/buildTypes/{0}/snapshot-dependencies/{1}", locator, snapshotDependencyId); }
public void SetBuildTypeVariable(BuildTypeLocator locatorBuildType, string nameVariable, string value) { m_caller.PutFormat(value, HttpContentTypes.TextPlain, "/buildTypes/{0}/{1}", locatorBuildType, nameVariable); }
public void DeleteAgentRequirement(BuildTypeLocator locator, string agentRequirementId) { m_caller.DeleteFormat("/buildTypes/{0}/agent-requirements/{1}", locator, agentRequirementId); }
public void DeleteBuildTrigger(BuildTypeLocator locator, string buildTriggerId) { m_caller.DeleteFormat("/buildTypes/{0}/triggers/{1}", locator, buildTriggerId); }
public void DownloadConfiguration(BuildTypeLocator locator, Action <string> downloadHandler) { var url = $"/buildTypes/{locator}"; m_caller.GetDownloadFormat(downloadHandler, url); }
public void DeleteBuildStep(BuildTypeLocator locator, string buildStepId) { m_caller.DeleteFormat("/buildTypes/{0}/steps/{1}", locator, buildStepId); }
public void SetConfigurationSetting(BuildTypeLocator locator, string settingName, string settingValue) { m_caller.PutFormat(settingValue, HttpContentTypes.TextPlain, "/buildTypes/{0}/settings/{1}", locator, settingName); }
public void DeleteConfiguration(BuildTypeLocator locator) { m_caller.DeleteFormat("/buildTypes/{0}", locator); }
public BuildConfig BuildType(BuildTypeLocator locator) { var build = this._caller.GetFormat <BuildConfig>("/app/rest/buildTypes/{0}", locator); return(build); }
public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId) { m_caller.DeleteFormat("/app/rest/buildTypes/{0}/vcs-root-entries/{1}", locator, vcsRootId); }
public void DownloadConfiguration(BuildTypeLocator locator, Action <string> downloadHandler) { this._caller.GetDownloadFormat(downloadHandler, "/app/rest/buildTypes/{0}", locator); }
public void DeleteConfiguration(BuildTypeLocator locator) { this._caller.DeleteFormat("/app/rest/buildTypes/{0}", locator); }
public void PostRawBuildStep(BuildTypeLocator locator, string rawXml) { this._caller.PostFormat <BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator); }
public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml) { this._caller.PostFormat <ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator); }
public bool GetConfigurationPauseStatus(BuildTypeLocator locator) { TryParse( m_caller.GetRaw(ActionHelper.CreateFieldUrl($"/buildTypes/{locator}/paused/", m_fields)), out var result); return(result); }
public void SetConfigurationParameter(BuildTypeLocator locator, string key, string value) { m_caller.PutFormat(value, HttpContentTypes.TextPlain, "/buildTypes/{0}/parameters/{1}", locator, key); }
public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused) { m_caller.PutFormat(isPaused, HttpContentTypes.TextPlain, "/buildTypes/{0}/paused/", locator); }
public void DeleteAllBuildTypeParameters(BuildTypeLocator locator) { m_caller.DeleteFormat("/buildTypes/{0}/parameters", locator); }
public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml) { m_caller.PostFormat <ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationJson, "/buildTypes/{0}/artifact-dependencies", locator); }
public void PostRawAgentRequirement(BuildTypeLocator locator, string rawXml) { m_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/buildTypes/{0}/agent-requirements", locator); }
public void PostRawBuildStep(BuildTypeLocator locator, string rawXml) { m_caller.PostFormat <BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationJson, "/buildTypes/{0}/steps", locator); }
public void DeleteArtifactDependency(BuildTypeLocator locator, string artifactDependencyId) { m_caller.DeleteFormat("/buildTypes/{0}/artifact-dependencies/{1}", locator, artifactDependencyId); }
public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml) { m_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/buildTypes/{0}/triggers", locator); }
public void DeleteParameter(BuildTypeLocator locator, string parameterName) { m_caller.DeleteFormat("/buildTypes/{0}/parameters/{1}", locator, parameterName); }
public void SetArtifactDependency(BuildTypeLocator locator, ArtifactDependency dependency) { m_caller.PostFormat <ArtifactDependency>(dependency, HttpContentTypes.ApplicationJson, HttpContentTypes.ApplicationJson, "/buildTypes/{0}/artifact-dependencies", locator); }
public void SetBuildTypeTemplate(BuildTypeLocator locatorBuildType, BuildTypeLocator locatorTemplate) { m_caller.PutFormat(locatorTemplate.ToString(), HttpContentTypes.TextPlain, "/buildTypes/{0}/template", locatorBuildType); }
public void SetSnapshotDependency(BuildTypeLocator locator, SnapshotDependency dependency) { m_caller.PostFormat <SnapshotDependency>(dependency, HttpContentTypes.ApplicationJson, HttpContentTypes.ApplicationJson, "/buildTypes/{0}/snapshot-dependencies", locator); }
public void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml) { m_caller.PostFormat(rawXml.OuterXml, HttpContentTypes.ApplicationXml, "/buildTypes/{0}/snapshot-dependencies", locator); }
public void SetTrigger(BuildTypeLocator locator, BuildTrigger trigger) { m_caller.PostFormat <BuildTrigger>(trigger, HttpContentTypes.ApplicationJson, HttpContentTypes.ApplicationJson, "/buildTypes/{0}/triggers", locator); }
public void AttachTemplate(BuildTypeLocator locator, string templateId) { m_caller.PutFormat(templateId, HttpContentTypes.TextPlain, "/buildTypes/{0}/template", locator); }
public BuildQuery BuildQuery(BuildTypeLocator buildType = null, UserLocator user = null, string agentName = null, BuildStatus? status = null, bool? personal = null, bool? canceled = null, bool? running = null, bool? pinned = null, BuildLocator sinceBuild = null, DateTime? sinceDate = null, string[] tags = null ) { return new BuildQuery(_caller) { Locator = BuildLocator.WithDimensions( buildType: buildType, user: user, agentName: agentName, status: status, personal: personal, canceled: canceled, running: running, pinned: pinned, sinceBuild: sinceBuild, sinceDate: sinceDate, tags: tags) }; }