1
0
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:
Ivan Nikiforov 2024-12-27 15:09:00 +01:00 committed by GitHub
parent 93c4ea61aa
commit 85dfe3e18d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View File

@ -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{

View File

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

View File

@ -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 {