artifacts aren't being created via yml - part 2

kennydust's Avatar

kennydust

19 Nov, 2014 10:41 PM

decided to spin off a new thread of my own. scope of the problem is creating artifacts via yml when
1. the publish_xx are commented out or disabled
2. artifacts are defined

anything wrong with my settings?

note:
on_finish has a "dir" cmd that doesn't indicate that the files/folders were created

Notes:

- Minimal appveyor.yml file is an empty file. All sections are optional.

- Indent each level of configuration with 2 spaces. Do not use tabs!

- All section names are case-sensitive.

- Section names should be unique on each level.

#---------------------------------#

general configuration

#---------------------------------#

version format

version: 1.0.{build}

branches to build

branches:
# whitelist only: - master

Do not build on tags (GitHub only)

skip_tags: true

#---------------------------------#

environment configuration

#---------------------------------#

Operating system (build VM template)

os: Windows Server 2012

#---------------------------------#

build configuration

#---------------------------------#

build platform, i.e. x86, x64, Any CPU. This setting is optional.

platform: Any CPU

build Configuration, i.e. Debug, Release, etc.

configuration: Debug

build:
project: trunk/GetBack.sln

publish_wap: true # package Web Application Projects (WAP) for Web Deploy

publish_wap_xcopy: true # package Web Application Projects (WAP) for XCopy deployment

#---------------------------------#

tests configuration

#---------------------------------#

test:
assemblies: - '***.Unit.dll'

#---------------------------------#

artifacts configuration

#---------------------------------#

artifacts:
# pushing a single file with environment variable in path and "Deployment name" specified - path: 'deployments\GetBack.UI.Website.zip' name: 'GetBack.UI.Website'

  • path: 'deployments\GetBack.UI.Admin.zip' name: 'GetBack.UI.Admin'

#---------------------------------#

cache configuration

#---------------------------------# cache:
- 'trunk/packages' # preserve "packages" directory in the root of build folder

on_finish:
- dir

- dir deployments\$(configuration)

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Nov, 2014 11:46 PM

    Feodor Fitsner's Avatar

    It should be either publish_wap or publish_wap_xcopy. If there are any Web Application Projects in GetBack.sln solution they should be automatically published and pushed to artifacts. If you see nothing on "Artifacts" tab of build details then it means solution doesn't include any WAP (or AV hasn't detected them which is also possible); otherwise you should get some error in the build log.

    Re: adding artifacts with artifacts section - how do you build both deployments\GetBack.UI.Website.zip and deployments\GetBack.UI.Admin.zip packages?

    Checking deployments\$(configuration) folder on on_finish looks weird to me as artifacts paths do not contain release.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

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