We have a deployment project with custom step with powershell script. Recently, we changed the script to reflect the process changes. We also have several old releases, created prior to this script change. We tried to deploy such old release after variable snapshot update for it (we needed to update connection strings there), but it appears like the custom script was also updated to the latest version as well. To verify it, we created an offline deployment for that old release and indeed, the script was latest version there.
Is it a bug or rather expected behavior? Should the variable snapshot update modify custom scripts to the latest version?
Octopus version is 4.1.4