Skip to main content

How to add Java arguments to Jenkins?

Comments

7 comments

  • Avi Kessner

    How can I update the statefulset yaml file, instead of editing the sts directly on the cluster?

    0
  • Fabian Röber

    @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

    When using apply, it gives a warning that the statefulset is not updated.  Do we need to remove the statefulset first?

    0
  • Denys Digtiar

    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

    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

    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

    Great Article!!

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.