mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-20 05:19:40 +02:00
Add sysadmin capabilities to npmExecuteScripts (#1691)
This commit is contained in:
parent
7c441f552f
commit
0d1b94adb3
@ -15,6 +15,7 @@ void call(Map parameters = [:]) {
|
||||
|
||||
// No credentials required/supported as of now
|
||||
List credentials = []
|
||||
parameters.dockerOptions = ['--cap-add=SYS_ADMIN'].plus(parameters.dockerOptions?:[])
|
||||
parameters = DownloadCacheUtils.injectDownloadCacheInParameters(script, parameters, BuildTool.NPM)
|
||||
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user