Type: New Feature
Priority: Major - P3
Affects Version/s: None
Fix Version/s: v3
evergreen fetch --source <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.
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.
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>