Giter Site home page Giter Site logo

pshitchhiker's Introduction

PSHitchhiker

HitchhikersGuide

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.

Jenkins Console for HTML-Reporting:

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/

FileSystem Hosting:

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"

Local NuGet Server Feed Hosting:

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?

pshitchhiker's People

Contributors

psymonn avatar xainey avatar

Watchers

James Cloos avatar

Forkers

jajp777

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.