Bitbucket pipelines using Octo.exe docker image does not support project names with spaces #4878
Closed
5 tasks done
Labels
kind/bug
This issue represents a verified problem we are committed to solving
Prerequisites
The bug
When using the
octopusdeploy/octo
(specificallyoctopusdeploy/octo:4.37.0-alpine
) Docker image in Bitbucket Pipelines and you callocto deploy-release --project "Test Website 2018"
octo.exe
throws the following errorUnrecognized command arguments: Website, 2018
NB Running the same Docker image locally (on both Windows and MacOS) does not exhibit the same issue.
What I expected to happen
The call to
octo.exe deploy-release
to succeed.Steps to reproduce
Follow the instructions here but instead of running
octo pack/push
callocto create-release
for a project that has spaces in its name.Screen capture
Log exerpt
Affected versions
Octopus Server: N/A
Workarounds
I have been unable to find any combination of escaping that makes the call to
octo.exe
succeed.The following permutations have been tested in the
bitbucket-pipelines.yml
file:"Project With Spaces
" --version $VERSION --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEYProject With Spaces
--version $VERSION --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEY'Project With Spaces
' --version'$VERSION
' --server $OCTOPUS_SERVER --apiKey $OCTOPUS_APIKEYEnvironment variable
$OCTOPUS_PROJECT
tested with the following values:Project With Spaces
'Project With Spaces'
"Project With Spaces"
\"Project With Spaces\"
\'Project With Spaces\'
''Project With Spaces''
""Project With Spaces""
Links
https://help.octopus.com/t/octo-exe-project-name-with-spaces/21242
The text was updated successfully, but these errors were encountered: