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

Allow declaring a default run_on distro in a task definition

    XMLWordPrintable

    Details

      Description

      Right now, it is possible to set the distro that a task will run on when including it in a buildvariant's task list:

      tasks:
        - name: mytask
          commands: ...
       
      buildvariants:
        - name: myvariant
          tasks:
            - name: mytask
              run_on: somedistro
      

      However, it would be useful if we could also set the run_on field when declaring the task instead of just when it's included in the buildvariant, like so:

      tasks:
        - name: mytask
          run_on: somedistro
          commands: ...
       
      buildvariants:
        - name: myvariant
          tasks:
            - name: mytask  # runs on somedistro
      

      This would make tasks that don't run on their buildvariant's default distro play much more nicely with tags, and would allow us to remove this ugly hack that we currently have to use in the mongomirror project config.

        Attachments

          Activity

            People

            Assignee:
            annie.black Annie Black
            Reporter:
            ryan.chipman Ryan Chipman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: