Does New-OctopusArtifact have a delay?

We have following two lines in the deployment script, which grabs the unencrypted web.config file before it is encrypted.

New-OctopusArtifact web.config
Encrypt-ConfigFile web.config

However, we are always getting the encrypted one.

Any explanation what’s going on here? How should I work around this?


Hi Tiger,

Thanks for getting in touch!

Artifacts get sent back at the end of the deployment which would happen post encryption. You could pipe the unencrypted file into the log ?

Hope that helps!