This module is designed for demonstration purposes.
The repo illustrates an automated release pipeline for a simplified PowerShell module.
For more information, please see the post: Hitchhiker's Guide to the PowerShell Module Pipeline.
To allow Jenkins to run inline CSS and JavaScript in the HTML Report we will need to configure the Content Security Policy.
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "style-src 'self' 'unsafe-inline';")
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
These settings do not persist when Jenkins is restarted. They can be added to the JAVA_ARGS for startup as seen in this StackOverflow Comment:
https://stackoverflow.com/questions/37618892/jenkins-content-security-policy/37623540#37623540
Create you own internal powershell repo: https://www.nuget.org/downloads
https://kevinmarquette.github.io/2017-05-30-Powershell-your-first-PSScript-repository/
Get-PSRepository
Register-PSRepository -Name "PsymonCorp" -SourceLocation "F:\Shared Folder\Repo" -InstallationPolicy Trusted
Get-PSRepository
Find-Module -Repository "PsymonCorp"
Find-Module -name "PSHitchhiker" -Repository "PsymonCorp" | Install-Module -Name "PSHitchhiker" -Scope "CurrentUser"
Install-Module -Name "PSHitchhiker" -Repository "PsymonCorp"
Install-Module -Name "PSHitchhiker" -Repository "PsymonCorp" -Scope CurrentUser
Import-Module PSHitchhiker
get-module
Uninstall-Module -Name "PSHitchhiker"
Get-PSRepository
Register-PSRepository -Name LocalNuGetFeed -SourceLocation http://localhost:8087/nuget -PublishLocation http://localhost:8087/nuget -InstallationPolicy Trusted
Unregister-PSRepository DSCGallery
Find-Module -name "PSHitchhiker" -Repository "LocalNuGetFeed" | Install-Module -Name "PSHitchhiker" -Scope "CurrentUser"
#(C:\Data\App\LocalNuGetFeed\Packages\PSHitchhiker.1.0.25.nupkg)
Install-Module -Name "PSHitchhiker" -Repository "LocalNuGetFeed" -Scope CurrentUser
Install-Module PSHitchhiker -Repository LocalNuGetFeed
Import-Module PSHitchhiker
get-module
Uninstall-Module -Name "PSHitchhiker"
Nuget Command: nuget.exe push {package file} {apikey} -Source http://localhost:8087/nuget
nuget.exe install PSHitchhiker -Source http://localhost:8087/nuget -OutputDirectory F:\Shared Folder\Repo
nuget delete PSHitchhiker 1.0 -Source http://package.contoso.com/source -apikey blablakey
find-package -name PSHitchhiker -allversion -Source http://localhost:8087/nuget
Install-Package -name PSHitchhiker -Source http://localhost:8087/nuget
Get-Package -name PSHitchhiker
Invoke-ModuleName -ask "what the" -format integer True Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?
Invoke-ModuleName -ask -question "what the" -format integer True Time is an illusion. Lunchtime doubly so.
Invoke-ModuleName -ask -question "what the" True Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?