예제 #1
0
        public static SnapshotDependency Default(string dependsOnbuildId)
        {
            var dependency = new SnapshotDependency();

            dependency.Properties.Add("run-build-if-dependency-failed", "false");
            dependency.Properties.Add("run-build-on-the-same-agent", "false");
            dependency.Properties.Add("take-started-build-with-same-revisions", "true");
            dependency.Properties.Add("take-successful-builds-only", "true");

            dependency.SourceBuildType = new BuildConfig
            {
                Id = dependsOnbuildId
            };

            return(dependency);
        }
예제 #2
0
        public static SnapshotDependency Default(string dependsOnbuildId)
        {
            var dependency = new SnapshotDependency();

            dependency.Properties.Add("run-build-if-dependency-failed", "RUN_ADD_PROBLEM");
            dependency.Properties.Add("run-build-if-dependency-failed-to-start", "MAKE_FAILED_TO_START");
            dependency.Properties.Add("run-build-on-the-same-agent", "false");
            dependency.Properties.Add("take-started-build-with-same-revisions", "true");
            dependency.Properties.Add("take-successful-builds-only", "true");

            dependency.SourceBuildType = new SourceBuildType
            {
                Id = dependsOnbuildId
            };

            return dependency;
        }
예제 #3
0
 public void SetSnapshotDependency(BuildTypeLocator locator, SnapshotDependency dependency)
 {
     _caller.PostFormat<SnapshotDependency>(dependency, HttpContentTypes.ApplicationJson,
         HttpContentTypes.ApplicationJson, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator);
 }