We’re trying to upload a Nuget package to our newly-minted linux tentacle. Here’s the specific error message we get:
| Failed: Download package Goonies.Goonies2 v18.104.22.168 directly from NuGet feed 'TeamCity' 17:34:09 Verbose | Using Calamari 7.1.0 17:34:29 Verbose | Starting /bin/bash in working directory '/etc/octopus/default/Work/20190816213433-42787-66' using 'Unicode (UTF-8)' encoding running as 'root' with the same environment variables as the launching process 17:34:30 Error | /etc/octopus/default/Work/20190816213433-42787-66/Bootstrap.sh: line 2: syntax error near unexpected token `newline' 17:34:30 Error | /etc/octopus/default/Work/20190816213433-42787-66/Bootstrap.sh: line 2: `param(' 17:34:30 Verbose | Process /bin/bash in /etc/octopus/default/Work/20190816213433-42787-66 exited with code 2 17:34:30 Verbose | Exit code: 2
Upon inspection of
Bootstrap.sh, we find that it’s trying to run a PowerShell script, and the ‘unexpected newline’ error is because it seems to be trying to interpret the PowerShell script as bash.