Receiving an error in a customers pipeline and not sure how to addresses this particular error. It’s attempting to pass in a app insight key value but is actually passing in the name of the value. Below is the ApplicationInsights.Release.config attempting to pass in this value.
Apologies for the obvious question, have you checked the Project Variables Preview to verify if #{HubPayInstrumentationKey} is resolving with the expected value for this target/step?
I don’t recognize the Found unresolved variables message. Is this a custom script? Also, what version of Octopus Server are you currently running?
So the variables exist in the library set global variables not in the specific project but this is how other projects that work are setup. This is an old version of Octopus v 2018.8.8. Essentially attempting to pass these keys in per environment.
The Variables Preview for the Project includes Library Variable Sets connected to the project as well. It’s worth checking to make sure something unexpected isn’t happening.
Could you provide a Process JSON for the project in question?
Were you able to confirm that the variable is resolving as anticipated via the Variable Preview page? If you don’t want to attach the raw task log to this post directly, you may PM me or I can even provide a secure upload link if you need it as well.
Looking at the task log at line 79 (and line 44 in the Process JSON), it looks like variable substitution is set only for the file named App.Release.config. I would try pointing this at ApplicationInsights.Release.config as well. The replacement on ApplicationInsights.config using ApplicationInsights.Release.config happens on line 604, so the replacement is happening in the right place, just without the additional file it needs.
Let me know if adding the filename to the list in the step for Substitution Variables in Files works for you.
Thanks for keeping in touch! I’ll jump in here for Donny as he’s now outside of his work hours.
Donny’s suggestion is to add the ApplicationInsights.Release.config file name to the list of Target Files in the Substitute Variables in Templates feature on your package step. The screenshot below is where this is located.