When I updated from 1.15 to 1.17 of the Durable Task plugin, PowerShell scripts stopped executing altogether.
There is an eternal pause right after Jenkins logs that it is starting the first powershell code.
Prior to this, it has always output the BOM characters in Jenkins logs - but also always worked.
When I revert this plug-in to 1.15, it starts working again.
Everything else is right up to date as of this writing: Jenkins 2.73.3 and Blue Ocean 1.3.3
My code is a powershell script that is part of the replicated repository. It is called in a Blue Ocean declarative pipeline using the dot (".") invoke operator so that exit codes are consumed directly by the pipeline.
I am running on Server 2012 R2 which has been updated to PowerShell 5.1.14409.1005.
Here is what the call looks like:
withEnv(["FIBUILDNAME=${jobconsolenamejenkinsvar}","TESTIMAGENAMEPREPEND=${TEST_IMAGENAME_PREPEND}"]) {
powershell '''
. "$PWD/Stage1-CreateWindowsAMI.ps1" -EnvironmentParams 'auto' -FIBuildName $env:FIBUILDNAME -FIBuildNumber $env:BUILD_NUMBER -CIBuildURL $env:BUILD_URL -AWSProfile 'instanceprofile' -TestImageNamePrepend $env:TESTIMAGENAMEPREPEND
'''
}
jglick
That bug really harm us during upgrade. I wanted to move most powershell scripts to SharedLibrary, any workaround for that?