I have a build which should run on two images. However, in the end I want to collect artifacts only from one of them. How can I achieve that? I have seen that for deployment, there is the "on" condition where it is possible to specify it. Is there anything similar for artifacts?
My yaml file:
image:
- Visual Studio 2017
- Ubuntu1804
build_script:
- cmd: build.bat
- sh: chmod u+x ./build.sh
- sh: ./build.sh All
test: off
version: 1.1.0.{build}
artifacts:
- path: TickSpec\bin\Release
name: release
- path: 'packed_nugets*.nupkg'
type: NuGetPackage
nuget:
account_feed: false
project_feed: false

#1 Posted by Owen McDonnell Support staff on 11 Oct, 2018 09:47 PM
You can make use of the
for:construct like this,Ilya Finkelshteyn closed this discussion on 12 Dec, 2018 09:00 PM.