CircleCI Ideas

Support variable expansion in config.yml

```

version: 2.1

orbs:

win: circleci/windows@2.4.0

jobs:

build:

executor: win/default

environment:

THIRDPARTY_HOME: C:/Users/circleci/thirdparty

CMAKE_HOME: ${THIRDPARTY_HOME}/cmake-3.16.4-win64-x64

CMAKE_BIN: ${CMAKE_HOME}/bin/cmake.exe

steps:

- run:

shell: bash.exe

command: ${CMAKE_BIN}

```

results in ${CMAKE_HOME}/bin/cmake.exe unknown file or dirctory.

I don't want to repeat C:/Users/circleci/thirdparty in different environment variables.

Question asked in https://discuss.circleci.com/t/environment-variable-expansion-in-windows-bash-shell/34933.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Mar 13 2020
  • Taking votes
  • Attach files