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

JIRA Generate Release Notes needs default Environment Variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: jira-plugin
    • Labels:
    • Environment:
      Jenkins 1.609.1.1 (CB 15.05)
      Windows Server 2008 R2 x64 Slave
      Java 1.8.0_60
      JIRA Plugin 2.0.2
    • Similar Issues:

      Description

      Generate Release Notes needs to require the Environment Variable field to be set or provide a default as when that field is empty, Windows jobs fail with java.io.IOException: CreateProcess error=87, The parameter is incorrect.

      Steps to Reproduce:

      1. Create a Freestyle Job
      2. Enable Generate Release Notes and do not fill in the Environment Variable field
      3. Add a build step to Execute Windows batch command put set in the command
        • The single set command should print the environment on a successful run
      4. Run the build and it should error out when trying to execute cmd with java.io.IOException: CreateProcess error=87, The parameter is incorrect.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Radosław Antoniuk
          Path:
          src/main/java/hudson/plugins/jira/JiraCreateReleaseNotes.java
          src/main/resources/hudson/plugins/jira/JiraCreateReleaseNotes/help-jiraEnvironmentVariable.html
          src/test/java/hudson/plugins/jira/JiraCreateReleaseNotesTest.java
          http://jenkins-ci.org/commit/jira-plugin/dc146476026d24b1ee51f183b69ce7416b009534
          Log:
          Add default variable name for ReleaseNotes generation.
          JENKINS-30829

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radosław Antoniuk Path: src/main/java/hudson/plugins/jira/JiraCreateReleaseNotes.java src/main/resources/hudson/plugins/jira/JiraCreateReleaseNotes/help-jiraEnvironmentVariable.html src/test/java/hudson/plugins/jira/JiraCreateReleaseNotesTest.java http://jenkins-ci.org/commit/jira-plugin/dc146476026d24b1ee51f183b69ce7416b009534 Log: Add default variable name for ReleaseNotes generation. JENKINS-30829

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            peter_nordquist Peter Nordquist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: