Octopus TeamCity Plugin Error on Linux

Hi, I am running Octopus and TeamCity (both on premise and both the latest versions). I have the Octopus plugin installed on TeamCity (version 6.0.1 which is the latest version I believe).

I have 3 TeamCity build agents; 1 Windows Server 2012 R2, and 2 running Ubuntu Linux. The Windows server can run the Octopus CLI commands perfectly. However I am struggling with the Ubuntu environments.

They all have the Octopus CLI installed, and I have confirmed this by running the octo command. TeamCity can also successfully run the command. The Octopus plugin for TeamCity successfully runs octo pack on all environments, but octo push fails on Ubuntu. It appears to cut off the end of the command when comparing the log to that of the Windows agent.

octo.exe push --server {CorrectUrl} --apikey SECRET --package C:\TeamCity\BuildAgent-2\work\7199a5c9fbb80bba\dist\{CorrectFilename}.zip

octo push --server {CorrectUrl} --apikey SECRET

Rightly, the CLI on Ubuntu complains, telling me to Please specify a package to push. The Octopus plugin for TeamCity seems to have run a truncated command. I have attached the log output from the process for completeness.

windows.log (1.5 KB) ubuntu.log (1.2 KB)

I have also ensured I followed the steps outlined in the Octopus documentation here.

Have I perhaps misconfigured a step in the Octopus plugin or in the environment itself?

Thanks in advance.

Hi Chris,

Thanks for getting in touch! I had a chat with the team about this and we have an idea about what could potentially be causing this issue.

In the Package Paths section from the screenshot you have provided, I can see that you are using backslashes for the path. Would you be able to try replacing these backslashes with forward slashes?

Our current idea is that Ubuntu does not recognise the backslashes whereas windows does, while the forward slash should function on both operating systems.

Would you be able to give this a go and let me know if it resolves your issue?

Looking forward to hearing from you.

Best regards,

1 Like

Hi Daniel

Thanks for the fast response. Your suggested worked perfectly thank you so much! I wouldn’t have expected Windows to recognise the forward slash in the same way that Ubuntu does.



1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.