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

Modifying a global library stored in Perforce when replaying a job fails due file not being writable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin

      Modifying a global library stored in Perforce when replaying a job fails due file not being writable. 

      Looks like when you replay a job in Jenkins and make a change to the library file, Jenkins then attempts to write to the file. Due to the file not being open for edit when Jenkins attempts to write to the file this subsequently fails.

       

      https://github.com/jenkinsci/p4-plugin/pull/85

       

      Reproduction steps:

      • create a folder
      • add a library within the folder
      • create a pipeline job(inline script or jenkinsfile) within the folder
      • build the job at least once
      • select the replay option for one of your finished jobs
      • on the "replay job" screen modify the library file before you replay
      • replay the job by selecting the "run" button

            p4paul Paul Allen
            msmeeth Matthew Smeeth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: