Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64944

If Jenkins pod restarts Job's move to its initial state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: _unsorted
    • Labels:
      None
    • Similar Issues:

      Description

      We have setup jenkins as a container(on K8S), and using configuration as code plugin we are dynamically loading the jobs with groovy file with 1 param (which is the build node entry), after the first dry run, all the jobs get all the params based on the pipeline script respectively. The problem we are facing now, if the pod is restarted, all the Jobs are switched backed to their original state with one param, and needs a dry run again, rest of the data are restored like build number, artifacts etc (from a nfs volume where jenkins_home data is stored). How can we prevent the jobs going back to its initial state when the pod/jenkins is restarted? Is there any specific file/folder that we need to backup ?
       

        Attachments

          Activity

          sanjay_mp Sanjay created issue -
          sanjay_mp Sanjay made changes -
          Field Original Value New Value
          Summary Jenkins restarts and moves to the Job's initial state If Jenkins pod restarts Job's move to its initial state
          oleg_nenashev Oleg Nenashev made changes -
          Component/s _unsorted [ 19622 ]
          Component/s jenkinsfile-runner [ 24123 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sanjay_mp Sanjay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: