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

CLI tool command to fetch source for a given task

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v3
    • Component/s: None
    • Labels:
      None

      Description

      something like:

      evergreen fetch --source <task id>

      should automate:

      git clone <project repo>
      git checkout <githash of base commit for the task id>
      

      then if it's a patch, it should fetch the patch from the server and do:
      git apply < /tmp/patchfile

      As a bonus, extensions to this command for fetching artifacts would be a nice timesaver too, especially if we put evergreen CLI binaries onto all spawnhosts.

      Some ideas:

      Fetch all the artifacts for a task
      $ evergreen fetch --artifacts <task_id>

      List (but not download) the artifacts for a task. Each one gets listed with an index that uniquely identifies it.

      $ evergreen fetch --artifacts <task_id> --list
      Artifacts for <Task Name> on <Variant>
      1. mongod
      2. mongo
      3. Debug Symbols
      

      Fetch a specific artifact for a task by name. If the name is ambiguous, this will just return an error and
      $ evergreen fetch --artifacts <task_id> --name <artifact name>

      Fetch a specific artifact for a task, by referring to it by index (in case it does not have a name, or the name is not unique)
      $ evergreen fetch --artifacts <task_id> --id <number>

        Attachments

          Activity

            People

            Assignee:
            mpobrien Michael O'Brien
            Reporter:
            mpobrien Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: