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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • _unsorted
    • None

      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 ?
       

            Unassigned Unassigned
            sanjay_mp Sanjay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: