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

${branch_name} expansion is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major - P3
    • Resolution: Fixed
    • None
    • v2017.02.01
    • app

    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

              sam.kleinman Sam Kleinman (Inactive)
              michael.grundy Michael Grundy
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: