diff --git a/Build/build.json b/Build/build.json index a20b584..8d2b769 100644 --- a/Build/build.json +++ b/Build/build.json @@ -22,7 +22,7 @@ "customNuspecs": [ { "Id": "SubPointSolutions.CakeBuildTools", - "Version": "0.1.0-beta5", + "Version": "0.1.0-beta6", "Dependencies": [ ], "LicenseUrl": "https://github.com/SubPointSolutions/CakeBuildTools/licence", "ProjectUrl": "https://github.com/SubPointSolutions/CakeBuildTools", diff --git a/SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake b/SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake index 0a3fbf8..82044a6 100644 --- a/SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake +++ b/SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake @@ -1266,7 +1266,7 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge") var cloneCmd = new []{ string.Format("cd '{0}'", docsRepoFolder), - string.Format("git clone -b {1} {0}", docsRepoUrl, defaultDocsBranch) + string.Format("git clone -b {1} {0} --quiet > null 2>&1", docsRepoUrl, defaultDocsBranch) }; StartPowershellScript(string.Join(Environment.NewLine, cloneCmd)); @@ -1277,8 +1277,8 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge") Information(string.Format("Checkout docs branch:[{0}]", defaultDocsBranch)); var checkoutCmd = new []{ string.Format("cd '{0}'", docsRepoFolder), - string.Format("git checkout {0}", defaultDocsBranch), - string.Format("git pull") + string.Format("git checkout {0} --quiet > null 2>&1", defaultDocsBranch), + string.Format("git pull --quiet > null 2>&1") }; StartPowershellScript(string.Join(Environment.NewLine, checkoutCmd)); @@ -1324,7 +1324,7 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge") mergeCmd.Add(string.Format("git add {0} -f", defaultDocsFileExtension)); } - mergeCmd.Add(string.Format("git commit -m '{0}'", commitName)); + mergeCmd.Add(string.Format("git commit -m '{0}' --quiet > null 2>&1", commitName)); StartPowershellScript(string.Join(Environment.NewLine, mergeCmd)); @@ -1333,7 +1333,8 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge") string.Format("cd '{0}'", docsRepoFolder), string.Format("git config http.sslVerify false"), string.Format("git config --global push.default simple"), - string.Format("git push {0}", docsRepoPushUrl) + string.Format("git push {0} --quiet > null 2>&1", docsRepoPushUrl), + string.Format("return $LASTEXITCODE") }; // writing a temporary PS file to avoid creds exposure in the build output