Allow script modules to be uploaded from a package
Script modules need versioning and be under source control to fully control them,
I want to upload a package and make a call to Octo that would instruct it to create a new Script Module or to update a given Script Module with the script(s) in that package
Steve Chapman commented
You can achieve this today via the API as Script Modules are basically Variable Sets (see /api/libraryvariablesets -> "ContentType": "ScriptModule"). Requires some plumbing (testing, API calls etc), but you can easily put a CI process around a git repository.
We wanted this too, but have come up with a workaround that seems to be working quite well.
Essentially we have taken our script modules and created proper PowerShell modules, which we publish in NuGets to the Ocotpus repository, complete with a custom Deploy.ps1 file that installs them in to one of the PSPath locations. We then push these out to the tentacles as part of the deployment, and then use the following code whenever we want to use these:
Import-Module <ModuleName> -ErrorAction Stop