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

Command control param

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            backlog-server-evg Backlog - Evergreen Team
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: