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

FileParameter should expose the original file name

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      Using FileParameter, the uploaded file is available for job as a local file renamed to parameter name. In some circumstances, the original file name is necessary for the job to handle it. As a sample, uploading an archive may require to know the file extension (zip|tgz) to run the adequate command

          [JENKINS-11326] FileParameter should expose the original file name

          Nicolas De Loof added a comment - see https://github.com/jenkinsci/jenkins/pull/284

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          changelog.html
          core/src/main/java/hudson/model/FileParameterValue.java
          http://jenkins-ci.org/commit/jenkins/d5fb8a34a4050692dd9323365a0bb7e2e15f235d
          Log:
          Merge pull request #284 from ndeloof/JENKINS-11326

          [FIXED JENKINS-11326] expose originalFileName as a (string) parameter

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: changelog.html core/src/main/java/hudson/model/FileParameterValue.java http://jenkins-ci.org/commit/jenkins/d5fb8a34a4050692dd9323365a0bb7e2e15f235d Log: Merge pull request #284 from ndeloof/ JENKINS-11326 [FIXED JENKINS-11326] expose originalFileName as a (string) parameter

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1218
          [FIXED JENKINS-11326] expose originalFileName as a (string) parameter

          Nicolas De Loof : 8ca078eec581a3385793390d37e399adb6bd2899
          Files :

          • core/src/main/java/hudson/model/FileParameterValue.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #1218 [FIXED JENKINS-11326] expose originalFileName as a (string) parameter Nicolas De Loof : 8ca078eec581a3385793390d37e399adb6bd2899 Files : core/src/main/java/hudson/model/FileParameterValue.java changelog.html

          Kelly Johnson added a comment -

          How to use, for anyone like me looking for answers:
          http://stackoverflow.com/questions/13951833/jenkins-parameterized-build-upload-file-and-save-original-file-name

          Also there is no fix version, but the fix year is '11, so that's probably good enough

          Kelly Johnson added a comment - How to use, for anyone like me looking for answers: http://stackoverflow.com/questions/13951833/jenkins-parameterized-build-upload-file-and-save-original-file-name Also there is no fix version, but the fix year is '11, so that's probably good enough

            ndeloof Nicolas De Loof
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: