You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pipeline that builds some software on Windows and as part of that writes the version string to a text file which I consume in a different job that is running in a Linux container.
>"$build"|Set-Content-Path VERSION.txt
What's weird is I consume this to create the release without issue.
But when I try to deploy the release, it throws an error.
$ octopus release deploy --space Default --project project --version $(cat VERSION.txt) --environment Dev --no-prompt
Octopus API error: Object reference not set to an instance of an object. []
If I trim any newline characters, it works.
$ octopus release deploy --space Default --project project --version $(cat VERSION.txt|tr -d '\n\r') --environment Dev --no-prompt
Successfully started 1 deployment(s)
The text was updated successfully, but these errors were encountered:
I should have included that the version file is created on a Windows system and the octopus release is executed on a Linux system. I'll try to validate this next week (hopefully).
I hit an annoying edge case bug.
I have a pipeline that builds some software on Windows and as part of that writes the version string to a text file which I consume in a different job that is running in a Linux container.
What's weird is I consume this to create the release without issue.
$ octopus release deploy --space Default --project project--version $(cat VERSION.txt) --environment Dev --no-prompt
But when I try to deploy the release, it throws an error.
If I trim any newline characters, it works.
$ octopus release deploy --space Default --project project --version $(cat VERSION.txt|tr -d '\n\r') --environment Dev --no-prompt Successfully started 1 deployment(s)
The text was updated successfully, but these errors were encountered: