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

File parameter, file is touched if no argument given

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      When using a file parameter, and no file is selected in the build trigger view,
      hudson should not 'touch' (create a zero-length) file at the location specified
      in the parameter definition.

      My use case is to use a file parameter to temporarily ovewrite a project file
      that controls the build process. If I don't specify any file in the build page,
      I don't want hudson to overwrite my default control file (coming from svn) with
      a zero length one.

          [JENKINS-3539] File parameter, file is touched if no argument given

          fdorner created issue -

          fdorner added a comment -

          I also noticed that when an upstream project triggers the build of a downstream
          project, which has a file parameter, it works as expected, i.e. no file is touched.

          fdorner added a comment - I also noticed that when an upstream project triggers the build of a downstream project, which has a file parameter, it works as expected, i.e. no file is touched.

          huybrechts added a comment -

          fixed

          huybrechts added a comment - fixed
          huybrechts made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

          Thomas Kiesling added a comment - - edited

          In LTS version 1.509.4 this works.
          Version 1.532.2 and 1.555 touch the file again if no argument was given.

          Thomas Kiesling added a comment - - edited In LTS version 1.509.4 this works. Version 1.532.2 and 1.555 touch the file again if no argument was given.
          Thomas Kiesling made changes -
          Assignee Original: huybrechts [ huybrechts ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Jenkins IRC Bot made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: parameters [ 15594 ]

          Daniel Beck added a comment -

          Daniel Beck added a comment - Probably caused by https://github.com/jenkinsci/jenkins/commit/4a95cc6f9269108e607077dc9fd57f06e4c9af26
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]

            danielbeck Daniel Beck
            fdorner fdorner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: