Hi there,
I’ve successfully managed to get the octopusdeploy\tentacle
container image customized with Powershell 7 registering in our cloud octopus instance. I’ve also managed to adapt the powershell scripts we are using to run there too.
However, we have a number of “Run a script” step templates, that are writing Warnings to the deployment console that seem to be related to path separators:
Extracting package '/etc/octopus/Files/Postie@S221024.1.1000769+master.e2964e8.769.docker@63D40CE0BA92224CA1EB945F270EAAA8.nupkg' to '/etc/octopus/Work/20221024104530-216257-18'
No files were found in /etc/octopus/Work/20221024104530-216257-18 that match the substitution target pattern '/etc/octopus/Work/20221024104530-216257-18/Ecs\ScaleTaskSet.ps1'
(The No files...
message above is being written to error stream and showing as orange in the tasklog)
This warning does not fail our deployment - in fact, the script does run correctly on the linux tentacle with the windows path separator. I have no visibility into what the Run A Script step is actually doing trying to search/replace or why it may be needed.
Please see screenshot attachment for the step definition.
(Note that the Replace
that I do have control over relates to the package name in the feed and the warning is not related to that)
Ideally I’d like to be able to run the step without warning on windows or linux tentacles. Is there anyway to clear this error?
Sincerely
Pete