public void DeleteBuildStep(string buildConfigId, TCStep step) { var url = string.Format("/app/rest/buildTypes/id:{0}/steps/{1}", buildConfigId, step.id); try { this._caller.Delete(url, Caller.CONTENT_TEXT); } catch (Exception ex) { if (ex.Message.Contains("Error executing Delete: NoContent")) { // swallow b/c this is just what gets returned... } else { throw; } } }
public TCStep CreateStepOnBuildConfig(string buildConfigId, TCStep step) { var url = string.Format("/app/rest/buildTypes/id:{0}/steps/", buildConfigId); return this._caller.Post<TCStep, TCStep>(url, step); }