-
Notifications
You must be signed in to change notification settings - Fork 0
Task Reference
The exported alias Task.Publish_PowerShellUniversal loads one InvokeBuild task
file containing the tasks documented on this page.
- publish_packed_module_to_universal_server
- publish_module_from_psresource_repos_to_universal_server
- package_universal_automation_repository
- publish_universal_automation_repository_to_server
- Common parameters
Uploads the module NuGet package directly to the PowerShell Universal module deployment endpoint.
- The module has been built and packed.
-
<OutputDirectory>/<ProjectName>.<ModuleVersion>.nupkgexists. -
UniversalServerUrlandUniversalServerAppTokenare available.
BuildWorkflow:
deploy:
- pack
- publish_packed_module_to_universal_serverThe deployment is synchronous and targets the output PowerShell resource
repository on the server.
Installs the built module from a PowerShell resource repository configured on the PowerShell Universal server.
- Resolve the configured repository URL.
- Create a local repository directory when the URL is a relative or absolute filesystem path.
- Query the server for the configured repository name.
- Create or reconcile the repository.
- Trigger a synchronous module installation.
- Remove the repository when auto-remove is enabled.
BuildWorkflow:
deploy:
- pack
- publish_module_from_psresource_repos_to_universal_serverCreates an offline PowerShell Universal automation repository zip containing
the built module and all recursively resolved RequiredModules.
- The module build has completed.
- The built module manifest is available.
- Every required module can be resolved from
PSModulePath.
- Staging directory:
<OutputDirectory>/<UniversalRepositoryStagingDirectoryName> - Zip package:
<OutputDirectory>/<ProjectName>.<ModuleVersion>.zip, unlessUniversalRepositoryZipNameoverrides it.
BuildWorkflow:
pack:
- build
- package_module_nupkg
- package_universal_automation_repositoryThe package includes a top-level repository.psd1 and versioned module folders
under Modules.
Uploads the offline automation repository zip to the PowerShell Universal deployment endpoint.
-
package_universal_automation_repositoryhas created the zip package. -
UniversalServerUrlandUniversalServerAppTokenare available.
BuildWorkflow:
deploy_repository:
- pack
- publish_universal_automation_repository_to_serverThe task sends UniversalRepositoryAsModule and UniversalUnpinned as
deployment query parameters. For the complete repository layout generated by
this module, use UniversalRepositoryAsModule: false.
The task file exposes these values through Sampler properties and environment variables:
| Parameter | Purpose |
|---|---|
OutputDirectory |
Base build output directory. |
UniversalServerUrl |
PowerShell Universal server URL. |
UniversalServerAppToken |
Deployment application token. |
UniversalPSResourceRepositoryName |
Resource repository name. |
UniversalPSResourceRepositoryUrl |
Resource repository URL or path. |
UniversalPSResourceRepositoryAutoRemove |
Controls repository cleanup. |
UniversalRepositoryStagingDirectoryName |
Offline repository staging directory name. |
UniversalRepositoryZipName |
Offline repository zip file name. |
UniversalRepositoryAsModule |
Deployment endpoint asModule value. |
UniversalUnpinned |
Deployment endpoint unpinned value. |
See Configuration for defaults and precedence.