We have some daily checks we’re using the script console for right now, and I’d like to find a way to automate it. My first inclination was find a way to have the server talk back to octopus, either through the API or through team city. Is there a way for me to issue commands to the script console from a server with the tentacle installed?
We already have script in Team city to create releases, but I don’t see anywhere I can access the script console. Am I just searching for the wrong things? I spend some time here as well: https://github.com/OctopusDeploy/OctopusDeploy-Api/wiki
Thanks for reaching out and sorry for the delay here.
Is there a way for me to issue commands to the script console from a server with the tentacle installed?
Is there a reason why you want to use the script console instead of a project? A project will make this a lot easier:
You already know how to trigger a deployment to it
It allows you to have a consistent set of steps. And even if you want to run a different script each time, you can setup a script step that is taken from a nuget package and push this package during your build: http://docs.octopusdeploy.com/display/OD/Standalone+scripts
It grants you consistent auditing so you can always review what was run where.
I strongly recommend you to use a project and create/deploy a release there instead of using the Script console from the API.
We already have script in Team city to create releases
Are you aware that we have a TeamCity plugin that give you build steps to do this? Much better than writing your own scripts. Here’s more info about it: http://docs.octopusdeploy.com/display/OD/TeamCity