openssl is not recognised as an internal or external command when running from TC
Hi,
I have a .netstandard C# class library with method which does a call to Process.Start(cmd.exe) with the params "echo value|openssl enc -aes-256-cbc"
i have a unit test which executes this class method but it fails when running from TC with the error code "openssl is not recognised as an internal or external command"
openssl is installed on the CI server and the PATH enviroment variable is set, all tests pass when running from VS both on local PC and the CI server itself
Any reason why TC would throw this error when running the test?
Please sign in to leave a comment.
Hi Corbin,
the most common scenario for this is when your user on the CI server has the PATH set, but the user running the teamcity process (or its process) doesn't. You can check whether the build agent (which is what is going to run the build) has it by accessing the agent in the web UI and check the agent properties. If the agent has openssl in the path, please follow the steps here for troubleshooting and reporting: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity