コード例 #1
0
        /// <summary>
        /// Parse out the identified known causes.  This needs to be kept up to date with the following:
        ///     http://dotnet-ci.cloudapp.net/failure-cause-management/
        /// </summary>
        public static bool TryGetBuildFailureInfo(JObject jobData, out BuildFailureInfo buildFailureInfo)
        {
            var actions   = (JArray)jobData["actions"];
            var causeList = new List <BuildFailureCause>();

            if (TryGetFailureCauses(actions, causeList) ||
                TryGetUnitTestCauses(actions, causeList) ||
                TryGetMergeConflict(actions, causeList))
            {
                buildFailureInfo = new BuildFailureInfo(new ReadOnlyCollection <BuildFailureCause>(causeList));
                return(true);
            }

            buildFailureInfo = null;
            return(false);
        }
コード例 #2
0
ファイル: DataTypes.cs プロジェクト: venkat-raman251/jenkins
 public BuildResult(BuildInfo buildInfo, BuildFailureInfo failureInfo)
 {
     this.buildInfo = buildInfo;
     _failureInfo   = failureInfo;
 }