How to add Java arguments to Jenkins? Félix Belzunce Arcos July 13, 2022 11:22 Updated The content of this article has moved to the new documentation site. Related articles Considerations for Kubernetes Clients Connections when using Kubernetes Plugin Java Heap settings Best Practice How to add Java arguments to Jenkins on CloudBees CI Modern ? How to address issues with 'unmappable characters'? What is Content Security Policy and how does it impact Jenkins? Comments 7 comments Sort by Date Votes Avi Kessner May 29, 2019 12:47 How can I update the statefulset yaml file, instead of editing the sts directly on the cluster? 0 Fabian Röber June 22, 2019 18:03 @avi kessner with kubectl apply -f <yourfile.yaml> this does only work if files have been initially pushed with apply -f (and not create -f) 0 Avi Kessner June 23, 2019 07:19 When using apply, it gives a warning that the statefulset is not updated. Do we need to remove the statefulset first? 0 Denys Digtiar June 24, 2019 07:27 Hi Avi, Have you first updated the sts/cjoc in the cloudbees-core.yml before applying it? Feel free to create a support ticket if this does not help you. 0 Surendra Donepudi May 22, 2020 16:48 Edited Hi Denys, How do I update the CloudBees Core java options using Helm and custom Values file? I am looking for syntax. I see below option in default helm values. Should I be including the java options in the quotes separated by spaces or add each one of them in a new line ? # JavaOpts: "" # -Dcom.sun.management.jmxremote.port=4000 # -Dcom.sun.management.jmxremote.authenticate=false # -Dcom.sun.management.jmxremote.ssl=false 0 Allan Burdajewicz July 08, 2020 03:35 Edited Hello Surendra, The syntax is as follow: OperationsCenter: JavaOpts: >- -Dcom.sun.management.jmxremote.port=4000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false We will improve this article with examples. 0 Noob Gamer July 08, 2021 18:00 Great Article!! 0 Please sign in to leave a comment.