Run build on same environment with different environment variables?

Jan Pio's Avatar

Jan Pio

14 Feb, 2018 03:44 PM

I need to run a build on the same environment but with different environment variables.

I have this right now:

image:
- Visual Studio 2015
- Visual Studio 2017
environment:
  matrix:
    - nodejs_version: "4"
    - nodejs_version: "6"

Additionally to VS15 node4, VS15 node6, VS17 node4, VS17 node6 I also have to run VS17 node6 with different environment variables. Can I do this somehow?

Jan

PS: If it is easier to achieve, I can also run all the other builds (VS15 node4, VS15 node6, VS17 node4) with these different environment variables as well.

  1. 1 Posted by Ilya Finkelshte... on 14 Feb, 2018 07:50 PM

    Ilya Finkelshteyn's Avatar

    Approach is the same as here

  2. 2 Posted by Jan Pio on 15 Feb, 2018 04:10 PM

    Jan Pio's Avatar

    Thanks, works.

    It was unclear to me that APPVEYOR_BUILD_WORKER_IMAGE is an env var - but now makes sense.

  3. Jan Pio closed this discussion on 15 Feb, 2018 04:10 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac