mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
fix(cloudFoundryDeploy): argument list too long (#5216)
* Increate command line limits * Increase new limits only to cf-cli image * Increase execution environment limits with static values * Remove unsupported operation * Increase docker container limits * Show current environment limits on container start * Clean up * Display environment limits only in verbose mode --------- Co-authored-by: Ivan Nikiforov <ivan.nikiforov@sap.com>
This commit is contained in:
parent
93c4ea61aa
commit
85dfe3e18d
@ -565,7 +565,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
},
|
||||
},
|
||||
Containers: []config.Container{
|
||||
{Name: "cfDeploy", Image: "ppiper/cf-cli:latest"},
|
||||
{Name: "cfDeploy", Image: "ppiper/cf-cli:latest", Options: []config.Option{{Name: "--ulimit", Value: "stack=67108864:67108864"}, {Name: "--ulimit", Value: "nofile=65536:65536"}}},
|
||||
},
|
||||
Outputs: config.StepOutputs{
|
||||
Resources: []config.StepResources{
|
||||
|
@ -370,6 +370,11 @@ spec:
|
||||
containers:
|
||||
- name: cfDeploy
|
||||
image: ppiper/cf-cli:latest
|
||||
options:
|
||||
- name: --ulimit
|
||||
value: "stack=67108864:67108864" # Stack Size (in bytes). 64mb
|
||||
- name: --ulimit
|
||||
value: "nofile=65536:65536" # Number of Open Files
|
||||
outputs:
|
||||
resources:
|
||||
- name: influx
|
||||
|
@ -78,6 +78,11 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede
|
||||
try {
|
||||
try {
|
||||
credentialWrapper(config, credentialInfo) {
|
||||
if (config.verbose) { // need to be set on step config
|
||||
echo "[DEBUG] Current environment limits:"
|
||||
sh "ulimit -a"
|
||||
}
|
||||
|
||||
sh "${piperGoPath} ${stepName}${defaultConfigArgs}${customConfigArg}"
|
||||
}
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user