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

All build logs added and committed when renaming job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • SCM Sync 0.0.6.1
      Jenkins 1.484

      Using Git as back end, when renaming a job the commit added all files under /job/renamedJob/* to the commit, rather that just the ones supposed to be included by default.

      the commit message looks like:

      Job [oldJobName] hierarchy renamed from [jobs/oldJobName] to [jobs/newJobName] by user

      The commit added 114 new files:

      jobs/newJobName/builds/date/triggerlog.xml
      jobs/newJobName/builds/date/build.xml
      jobs/newJobName/builds/date/changelog.xml
      jobs/newJobName/builds/date/injectedEnvVars.txt

      repeating for each retaining build.

      The documentation says it should only be including the following by default:
      config.xml
      hudson*.xml
      scm-sync-configuration.xml
      jobs/*/config.xml

      but it incorrectly add jobs/newJobName/builds/*.[txt|xml]

            fcamblor Frédéric Camblor
            trbaker Trevor Baker
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: