Skip to content

Instantly share code, notes, and snippets.

@srgrn
Created May 30, 2016 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srgrn/0110b8455082e4cc1fac4a4dc7365aee to your computer and use it in GitHub Desktop.
Save srgrn/0110b8455082e4cc1fac4a4dc7365aee to your computer and use it in GitHub Desktop.
Simple Jenkins Batch runner for powershell scripts - replace the scriptname.bat to the powershell script name.
@ECHO OFF
PowerShell.exe -NoProfile -NonInteractive -ExecutionPolicy unrestricted -Command "& %~d0%~p0%~n0.ps1" %*
EXIT /B %errorlevel%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment