AppVeyor doesn't expand variables in artifact paths

semenov.roman's Avatar

semenov.roman

24 Sep, 2017 03:30 AM

I've tried both regular and curly braces, quotes and no quotes and it doesn't work

after_build:
- cmd: dir Releases

artifacts:
- path: Releases\Hotsapi.Uploader-$(version)-delta.nupkg
- path: 'Releases\Hotsapi.Uploader-$(version)-delta.nupkg'
- path: Releases\Hotsapi.Uploader-{version}-delta.nupkg
- path: 'Releases\Hotsapi.Uploader-{version}-delta.nupkg'

Output:

dir Releases
 Volume in drive C has no label.
 Volume Serial Number is 1CB8-D4AA
 Directory of C:\projects\hotsapi-uploader\Releases
09/23/2017  08:29 PM    <DIR>          .
09/23/2017  08:29 PM    <DIR>          ..
09/23/2017  08:29 PM           209,495 Hotsapi.Uploader-1.6.0-delta.nupkg
09/23/2017  08:29 PM         1,717,905 Hotsapi.Uploader-1.6.0-full.nupkg
09/23/2017  08:29 PM            27,069 Hotsapi.Uploader-1.6.45-delta.nupkg
09/23/2017  08:29 PM         1,718,132 Hotsapi.Uploader-1.6.45-full.nupkg
09/23/2017  08:29 PM         2,860,032 HotsApiUploaderSetup.exe
09/23/2017  08:29 PM             2,069 RELEASES
               6 File(s)      6,534,702 bytes
               2 Dir(s)  27,554,877,440 bytes free
Discovering tests...OK
Collecting artifacts...
No artifacts found matching 'Releases\Hotsapi.Uploader-$(version)-delta.nupkg' path
No artifacts found matching 'Releases\Hotsapi.Uploader-$(version)-delta.nupkg' path
No artifacts found matching 'Releases\Hotsapi.Uploader-{version}-delta.nupkg' path
No artifacts found matching 'Releases\Hotsapi.Uploader-{version}-delta.nupkg' path

What am I doing wrong?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 25 Sep, 2017 09:18 PM

    Ilya Finkelshteyn's Avatar

    Hi Roman,

    Try

    - path: Releases\Hotsapi.Uploader-$(APPVEYOR_BUILD_VERSION)-delta.nupkg
    
    instead.

    version is not really an Environment variable, it is rather local variable we made available during AssemblyInfo or .csproj patching (just to make it compact).

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

18 Oct, 2017 08:54 AM
18 Oct, 2017 08:21 AM
18 Oct, 2017 07:42 AM
17 Oct, 2017 07:36 PM
17 Oct, 2017 05:39 PM

 

17 Oct, 2017 04:29 PM
17 Oct, 2017 07:49 AM
16 Oct, 2017 11:38 PM
16 Oct, 2017 10:01 PM
16 Oct, 2017 08:25 AM
16 Oct, 2017 07:58 AM