Hi there !
We are currently evaluating Octupus deploy for our deployment needs.
We are using it on an ASP.NET Core RC1 application and thus we use JSON configuration files.
Now so far everything seems to go smoothly but we are running into a problem with json variable replacements.
The config file in question looks like this:
{
“StorageType”: “local”,
“ThreadCount”: null,
“Queues”: [“smarttagging”,“leafletflightcompilation”,“purging”],
“Integration”: {
“StorageType”: “redis”,
“ThreadCount”: 1
},
“Testing”: {
“StorageType”: “redis”,
“ThreadCount”: 1
},
“Production”: {
“StorageType”: “redis”,
“ThreadCount”: 0
}
}
Now on deployment we want to change the value of Queues to [“smarttagging”] only and the value of
Production:ThreadCount to 8
Basically this works, however all values written to the file by Octupus are always saved as json string values.
Here are our variables:
Production:ThreadCount Value: 8
Queues Value: [“smarttagging”]
We end up with this final config file after replacements:
{
“StorageType”: “local”,
“ThreadCount”: null,
“Queues”: “[“smarttagging”]”,
“Integration”: {
“StorageType”: “redis”,
“ThreadCount”: 1
},
“Testing”: {
“StorageType”: “redis”,
“ThreadCount”: 1
},
“Production”: {
“StorageType”: “redis”,
“ThreadCount”: “8”
}
}
Which is obviously not the desired end result…
Are we doing something wrong ? Is this a bug ? Or is there some way around this ?
PS: We are using Octupus 3.3.4
Regards
Bernhard Glück