예제 #1
0
 public void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDependencyId)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/snapshot-dependencies/{1}", locator, snapshotDependencyId);
 }
예제 #2
0
 public void SetBuildTypeVariable(BuildTypeLocator locatorBuildType, string nameVariable, string value)
 {
     m_caller.PutFormat(value, HttpContentTypes.TextPlain, "/buildTypes/{0}/{1}", locatorBuildType,
                        nameVariable);
 }
예제 #3
0
 public void DeleteAgentRequirement(BuildTypeLocator locator, string agentRequirementId)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/agent-requirements/{1}", locator, agentRequirementId);
 }
예제 #4
0
 public void DeleteBuildTrigger(BuildTypeLocator locator, string buildTriggerId)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/triggers/{1}", locator, buildTriggerId);
 }
예제 #5
0
        public void DownloadConfiguration(BuildTypeLocator locator, Action <string> downloadHandler)
        {
            var url = $"/buildTypes/{locator}";

            m_caller.GetDownloadFormat(downloadHandler, url);
        }
예제 #6
0
 public void DeleteBuildStep(BuildTypeLocator locator, string buildStepId)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/steps/{1}", locator, buildStepId);
 }
예제 #7
0
 public void SetConfigurationSetting(BuildTypeLocator locator, string settingName, string settingValue)
 {
     m_caller.PutFormat(settingValue, HttpContentTypes.TextPlain, "/buildTypes/{0}/settings/{1}", locator,
                        settingName);
 }
예제 #8
0
 public void DeleteConfiguration(BuildTypeLocator locator)
 {
     m_caller.DeleteFormat("/buildTypes/{0}", locator);
 }
예제 #9
0
        public BuildConfig BuildType(BuildTypeLocator locator)
        {
            var build = this._caller.GetFormat <BuildConfig>("/app/rest/buildTypes/{0}", locator);

            return(build);
        }
예제 #10
0
 public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)
 {
     m_caller.DeleteFormat("/app/rest/buildTypes/{0}/vcs-root-entries/{1}", locator, vcsRootId);
 }
예제 #11
0
 public void DownloadConfiguration(BuildTypeLocator locator, Action <string> downloadHandler)
 {
     this._caller.GetDownloadFormat(downloadHandler, "/app/rest/buildTypes/{0}", locator);
 }
예제 #12
0
 public void DeleteConfiguration(BuildTypeLocator locator)
 {
     this._caller.DeleteFormat("/app/rest/buildTypes/{0}", locator);
 }
예제 #13
0
 public void PostRawBuildStep(BuildTypeLocator locator, string rawXml)
 {
     this._caller.PostFormat <BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator);
 }
예제 #14
0
 public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml)
 {
     this._caller.PostFormat <ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
 }
예제 #15
0
 public bool GetConfigurationPauseStatus(BuildTypeLocator locator)
 {
     TryParse(
         m_caller.GetRaw(ActionHelper.CreateFieldUrl($"/buildTypes/{locator}/paused/", m_fields)), out var result);
     return(result);
 }
예제 #16
0
 public void SetConfigurationParameter(BuildTypeLocator locator, string key, string value)
 {
     m_caller.PutFormat(value, HttpContentTypes.TextPlain, "/buildTypes/{0}/parameters/{1}", locator, key);
 }
예제 #17
0
 public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused)
 {
     m_caller.PutFormat(isPaused, HttpContentTypes.TextPlain, "/buildTypes/{0}/paused/", locator);
 }
예제 #18
0
 public void DeleteAllBuildTypeParameters(BuildTypeLocator locator)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/parameters", locator);
 }
예제 #19
0
 public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml)
 {
     m_caller.PostFormat <ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationJson,
                                              "/buildTypes/{0}/artifact-dependencies", locator);
 }
예제 #20
0
 public void PostRawAgentRequirement(BuildTypeLocator locator, string rawXml)
 {
     m_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/buildTypes/{0}/agent-requirements", locator);
 }
예제 #21
0
 public void PostRawBuildStep(BuildTypeLocator locator, string rawXml)
 {
     m_caller.PostFormat <BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationJson,
                                       "/buildTypes/{0}/steps", locator);
 }
예제 #22
0
 public void DeleteArtifactDependency(BuildTypeLocator locator, string artifactDependencyId)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/artifact-dependencies/{1}", locator, artifactDependencyId);
 }
예제 #23
0
 public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml)
 {
     m_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/buildTypes/{0}/triggers", locator);
 }
예제 #24
0
 public void DeleteParameter(BuildTypeLocator locator, string parameterName)
 {
     m_caller.DeleteFormat("/buildTypes/{0}/parameters/{1}", locator, parameterName);
 }
예제 #25
0
 public void SetArtifactDependency(BuildTypeLocator locator, ArtifactDependency dependency)
 {
     m_caller.PostFormat <ArtifactDependency>(dependency, HttpContentTypes.ApplicationJson,
                                              HttpContentTypes.ApplicationJson,
                                              "/buildTypes/{0}/artifact-dependencies", locator);
 }
예제 #26
0
 public void SetBuildTypeTemplate(BuildTypeLocator locatorBuildType, BuildTypeLocator locatorTemplate)
 {
     m_caller.PutFormat(locatorTemplate.ToString(), HttpContentTypes.TextPlain, "/buildTypes/{0}/template",
                        locatorBuildType);
 }
예제 #27
0
 public void SetSnapshotDependency(BuildTypeLocator locator, SnapshotDependency dependency)
 {
     m_caller.PostFormat <SnapshotDependency>(dependency, HttpContentTypes.ApplicationJson,
                                              HttpContentTypes.ApplicationJson,
                                              "/buildTypes/{0}/snapshot-dependencies", locator);
 }
예제 #28
0
 public void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml)
 {
     m_caller.PostFormat(rawXml.OuterXml, HttpContentTypes.ApplicationXml,
                         "/buildTypes/{0}/snapshot-dependencies", locator);
 }
예제 #29
0
 public void SetTrigger(BuildTypeLocator locator, BuildTrigger trigger)
 {
     m_caller.PostFormat <BuildTrigger>(trigger, HttpContentTypes.ApplicationJson, HttpContentTypes.ApplicationJson,
                                        "/buildTypes/{0}/triggers", locator);
 }
예제 #30
0
 public void AttachTemplate(BuildTypeLocator locator, string templateId)
 {
     m_caller.PutFormat(templateId, HttpContentTypes.TextPlain, "/buildTypes/{0}/template", locator);
 }
예제 #31
0
 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)
     };
 }