How to restrict deployment to certain image?
Hi,
our build runs on images Visual Studio 2015 and Visual Studio 2017 - the former to ensure that the build works for that environment (we want our users to be able to contribute if they are still on VS2015), but the latter actually generates the build artifacts (we are building a VS extension, and the format has changed with VS2017, so we can not do this on VS2015).
This all works fine except one thing: Deployment (to GitHub and NuGet) shall only take place from the VS2017 build. I tried to configure that using os and image, e.g.
deploy:
- provider: GitHub
auth_token:
secure: ...
description: $(RELEASE_NOTES)
draft: true
prerelease: true
on:
os: Visual Studio 2017
branch: master
appveyor_repo_tag: true
But without success: The former results in
"GitHub" deployment has been skipped as environment variable has not matched ("os" is "Windows_NT", should be "Visual Studio 2017") (build output)
,the latter in
"GitHub" deployment has been skipped as environment variable has not matched ("image" is "", should be "Visual Studio 2017") (build output)
Is there a way to restrict deployment to a certain image?
Thanks in advance,
Christian
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

1 Posted by Ilya Finkelshte... on 17 May, 2017 06:45 PM
Hi Christian,
Please use
APPVEYOR_BUILD_WORKER_IMAGEenvironment variable instead ofosorimage. Sorry for confusion.Ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.