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

    • 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

          [JENKINS-55107] Modifying a global library stored in Perforce when replaying a job fails due file not being writable

          Matthew Smeeth created issue -
          Matthew Smeeth made changes -
          Rank New: Ranked higher
          Matthew Smeeth made changes -
          Description Original: 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
          New: 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
          Paul Allen made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Paul Allen made changes -
          Labels New: P4_B

          Paul Allen added a comment -

          Ready for release.

          Paul Allen added a comment - Ready for release.
          Paul Allen made changes -
          Assignee New: Paul Allen [ p4paul ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Fixed but Unreleased [ 10203 ]

          Paul Allen added a comment -

          Released in 1.9.6

          Paul Allen added a comment - Released in 1.9.6
          Paul Allen made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: