Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-1259

${branch_name} expansion is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2017.02.01
    • Component/s: project-config
    • Labels:
      None

      Description

      ${branch_name} should expand out to the git branch name, but instead it's the same as the ${project} expansion.

      func populateExpansions(d *distro.Distro, bv *BuildVariant, t *task.Task) *command.Expansions {
      	expansions := command.NewExpansions(map[string]string{})
      	...
      	expansions.Put("project", t.Project)
      	expansions.Put("branch_name", t.Project)
      	...
      }
      

      https://github.com/evergreen-ci/evergreen/blob/3d79fa38e7fcf1420b82f00f86b4bcae03d58936/model/project.go#L475-L476

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sam.kleinman Sam Kleinman
                Reporter:
                michael.grundy Michael Grundy
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: