Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33239

expansions.update generates error for src/${aws_ec2_yml} in evergreen.yml

    • Server Tooling & Methods

      This code block in the function "set EC2 address" generates an error if it's invoked in a non-Powercycle task:

          - command: expansions.update
            params:
              file: src/${aws_ec2_yml}
      

      In this case the expansion macro aws_ec2_yml os not defined causing the expansions.update to attempt to use a directory:

      [2018/02/09 13:43:42.864] Running command 'expansions.update' in "set EC2 address" (step 3.2 of 36)
      [2018/02/09 13:43:42.864] Updating expansions with keys from file: /data/mci/29701ce16b48fecddfed1732d4bb3622/src
      [2018/02/09 13:43:42.864] Command failed: read /data/mci/29701ce16b48fecddfed1732d4bb3622/src: is a directory
      

      It might be desirable to create an empty YML file to prevent this in the pre step.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: