1
0
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:
Daniel Kurzynski 2020-06-19 16:39:07 +02:00 committed by GitHub
parent 7c441f552f
commit 0d1b94adb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}