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

git.get_project params should allow expansions

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2017.02.01
    • Component/s: app

      Description

      I'd like to be able to parameterize git.get_project for copy across multiple Evg configs without having to update the directory parameter each time. I thought I could do so like this:

      "fetchSource" :
        command: git.get_project
        params:
          directory: ${repo_directory}
      

      However, that resulted in this:

      [2017/01/20 07:37:14.388] Running command 'git.get_project' in "fetchSource" (step 3 of 4)
      [2017/01/20 07:37:14.392] rm -rf ${repo_directory}
      [2017/01/20 07:37:14.393] git clone git@github.com:mongodb/mongo-perl-bson.git '${repo_directory}'
      [2017/01/20 07:37:14.395] Cloning into '${repo_directory}'...
      [2017/01/20 07:37:14.635] cd ${repo_directory}; git checkout 4f94e58c160972dcc658ac11b0f6dae7718ae86b
      

      Please expand expansions in the command params.

        Attachments

          Activity

            People

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            david.golden David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: