A Build Script No Longer Working After Server Reboot

I've got at least a dozen build configurations under one project that all have 7 steps. They all inherit from the same .NET template. Only one configuration fails on step 2: Get Build and Version Values (PowerShell) with the error "] Cannot find PowerShell script by path specified in build configuration settings: C:\TeamCity\buildAgent\work\...\tools\build\internal\get-build-version-values.ps1 (absolute path on agent). Please check that the specified path is correct." The same build step in all of the other configurations works. When look in the path, all but the PowerShell script used in the first step (Step 1/7: Get Additional Paths (PowerShell)) are missing. This doesn't happen in any of the other configurations.

I've tried recreating an entire new build configuration (without copying). The same problem occurs. This build configuration was working yesterday, up until the build was in progress and was "Canceled (Exit code 1 (Step: Get Additional Paths (PowerShell)) (new))" when the server was rebooted for a Windows Update. Hasn't worked since no matter what I try.

Have you any suggestions?

0
1 comment

Hi Craig,

 

If the work folder is holding corrupted data that is leading to the issue, forcing a clean checkout should help. Could you try that?

0

Please sign in to leave a comment.