Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Won't Fix
-
None
Description
It would be really useful to be able to control command execution. This could be done by adding an execute param to the Evergreen commands. This would be a bool type, with a default of true. This would provide some level of control flow to tasks, using an expansion macro for this new param.
Example:
- name: compile
|
depends_on: []
|
commands:
|
- command: manifest.load
|
params:
|
execute: ${project_loaded|true}
|
- command: git.get_project
|
params:
|
execute: ${project_loaded|true}
|
directory: ${git_project_directory|src}
|
revisions: # for each module include revision as <module_name> : ${<module_name>_rev}
|
enterprise: ${enterprise_rev}
|
rocksdb: ${rocksdb_rev}
|
wtdevelop: ${wtdevelop_rev}
|
- command: s3.get
|
...
|
The commands manifest.load and git.get_project will not execute in compile if ${project_loaded} is false.