Example JenkinsFile calls parameterize PowerShell Scripts

you can parameterize PowerShell Scripts in JenkinsFile by using PowerShell Step in JenkinsFile to call a PowerShell script and pass arguments separated by space.

powershell(returnStdout: true, script: '''<PATH-TO-SCRIPT> $env:<PARAMETER1> $env:<PARAMETER-N> ''')

Example JenkinsFile


Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts sent to your email.