Beispiel #1
0
        public async Task CreateDependency(string targetBuildConfigId, DependencyDefinition dependencyDefinition)
        {
            var xml = CreateDependencyXml(dependencyDefinition);

            Log.TraceFormat("API BuildConfig.CreateDependency for: {0}, dependency: {1}", targetBuildConfigId, xml);

            var url = string.Format("/app/rest/buildTypes/{0}/{1}-dependencies", targetBuildConfigId, dependencyDefinition.Type.Split('_')[0]);

            await _http.PostXml(url, xml);
        }