stage('Build') {
steps {
powershell '''
Write-Output "Starting Yarn Install"
try {
\$ErrorActionPreference = 'Stop'
yarn install
} catch {
Write-Output "Install failed : \$PSItem"
}
'''
}
}
yarn install v1.5.1yarn : warning package.json: No license fieldAt line:1 char:19+ try { yarn install --frozen-lockfile } catch { ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (warning package.json: No license field:String) [], RemoteException+ FullyQualifiedErrorId : NativeCommandErrorwarning s...@0.0.0: No license field[1/4] Resolving packages...success Already up-to-date.Done in 2.16s.[blwdsoabuild4]: PS C:\Jenkins\workspace\SOE.POC> echo $LASTEXITCODE0
ERROR: script returned exit code 1 Finished: FAILURE
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6b3b58f6-a870-43d6-800f-6396329ad8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[SOE.POC] Running batch script C:\Jenkins\workspace\SOE.POC\SOE.POC>yarn install --frozen-lockfile
yarn install v1.5.1
warning package.json: No license field
warning s...@0.0.0: No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 1.33s.
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESSFor comparison[SOE.POC] Running PowerShell script
yarn install v1.5.1
powershell.exe : warning package.json: No license field
At C:\Jenkins\workspace\SOE.POC\SOE.POC@tmp\durable-c8ac6911\powershellWrapper.ps1:3 char:1
+ & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -File ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (warning package.json: No license field:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
warning s...@0.0.0: No license field [1/4] Resolving packages...
success Already up-to-date.
Done in 2.41s.
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE