We’re using a script module which has been added through the Octopus Deploy UI. We’re using the script in one of our projects without any problems.
We need to use the same script module again in another Project and have added it to the Process. However during deployment we’re getting the following errors;
We’ve cloned the new project from the existing (working) project and updated the variables, but we are still facing the same issues.
Looking at the verbose logs of the task, we can’t see that the script module is even being imported.
Thanks for getting in touch! We generally see this error when the script module has not been added to the project, though it sounds like you have already checked this.
I’ll need to get some further information from you to better understand what could be going on.
What version of Octopus deploy are you currently using?
Would you be able to attach a screenshot of your entire deployment process page?
This was being caused by a hidden variable, which looks like its the script, which has environments assigned to it. Our environments for the new project weren’t in the list.
We found this by looking at ALL variable from the project and discovered the hidden variable that we can’t see in our Variable Sets list.
Thanks for the update here. I’m sorry for the delay in getting back. I did some digging and was not able to immediately identify the issue. My next step was going to be to get details on your script module and the variables in both your working and non working project. I’m glad to hear that you have found the issue on this though.
If you have any further questions please don’t hesitate to get in touch.