diff --git a/CHANGELOG.md b/CHANGELOG.md index 45177d23d..76084ad75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [vNext] +## [0.24.5] / 2020-03-24 +- Fixed TeamCity configuration to use Bash script on Unix + ## [0.24.4] / 2020-03-05 - Fixed Refit version - Fixed conversion of `GitHubActionsTrigger` @@ -545,7 +548,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added CLT tasks for Git - Fixed background color in console output -[vNext]: https://github.com/nuke-build/nuke/compare/0.24.4...HEAD +[vNext]: https://github.com/nuke-build/nuke/compare/0.24.5...HEAD +[0.24.5]: https://github.com/nuke-build/nuke/compare/0.24.4...0.24.5 [0.24.4]: https://github.com/nuke-build/nuke/compare/0.24.2...0.24.4 [0.24.2]: https://github.com/nuke-build/nuke/compare/0.24.1...0.24.2 [0.24.1]: https://github.com/nuke-build/nuke/compare/0.24.0...0.24.1 diff --git a/source/Nuke.Common/CI/TeamCity/Configuration/TeamCityBuildType.cs b/source/Nuke.Common/CI/TeamCity/Configuration/TeamCityBuildType.cs index 8e62a2168..b79ae1816 100644 --- a/source/Nuke.Common/CI/TeamCity/Configuration/TeamCityBuildType.cs +++ b/source/Nuke.Common/CI/TeamCity/Configuration/TeamCityBuildType.cs @@ -108,7 +108,10 @@ public virtual void WriteSteps(CustomFileWriter writer) using (writer.WriteBlock("exec")) { - writer.WriteLine($"path = {BuildCmdPath.DoubleQuote()}"); + var path = Platform == TeamCityAgentPlatform.Windows + ? BuildCmdPath + : BuildCmdPath.Replace(".cmd", ".sh"); + writer.WriteLine($"path = {path.DoubleQuote()}"); writer.WriteLine($"arguments = {arguments.DoubleQuote()}"); } }