public static ArtifactDependency Default(string dependsOnBuildId) { var dependency = new ArtifactDependency(); dependency.Properties.Add("cleanDestinationDirectory", "true"); dependency.Properties.Add("pathRules", "* => Temp"); dependency.Properties.Add("revisionName", "sameChainOrLastFinished"); dependency.Properties.Add("revisionValue", "latest.sameChainOrLastFinished"); dependency.SourceBuildType = new BuildConfig { Id = dependsOnBuildId }; return(dependency); }
public static ArtifactDependency Default(string dependsOnbuildId) { var dependency = new ArtifactDependency(); dependency.Properties.Add("cleanDestinationDirectory", "true"); dependency.Properties.Add("pathRules", "* => Temp"); dependency.Properties.Add("revisionName", "sameChainOrLastFinished"); dependency.Properties.Add("revisionValue", "latest.sameChainOrLastFinished"); dependency.SourceBuildType = new SourceBuildType { Id = dependsOnbuildId }; return dependency; }
public void SetArtifactDependency(BuildTypeLocator locator, ArtifactDependency dependency) { _caller.PostFormat<ArtifactDependency>(dependency, HttpContentTypes.ApplicationJson, HttpContentTypes.ApplicationJson, "/app/rest/buildTypes/{0}/artifact-dependencies", locator); }