No artifacts being created with yml

solomon's Avatar

solomon

15 Oct, 2014 06:05 AM

I have a yml that I am trying to get building my project correctly. The project builds, but not artifacts are being created. I do get two artifacts when I use publish_wap: true in the build block (I have two web projects in the solution), but nothing when I try to use the artifacts block. Here is my yml. I have one solution with two web projects and a number of other class library projects. Any thoughts on why artifacts are not being created? Attached is the latest log as well.

#---------------------------------#
# general configuration #
#---------------------------------#

version: 1.0.{build}

skip_tags: true

# Skipping commits with particular message or from user
# skip_commits:
# message: /Created.*\.(png|jpg|jpeg|bmp|gif)/ # Regex for matching commit message
# author: John # Commit author's username, name, email or regexp maching one of these.

#---------------------------------#
# environment configuration #
#---------------------------------#

os: Windows Server 2012

clone_folder: c:\projects\source

#---------------------------------#
# build configuration #
#---------------------------------#

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

# configuration: Debug

#build:
  #project: Source/MySolution.sln # path to Visual Studio solution or project
  #publish_wap_xcopy: true # package Web Application Projects (WAP) for XCopy deployment
  #publish_wap: true # package Web Application Projects (WAP) for Web Deploy
  #verbosity: minimal

#---------------------------------#
# artifacts configuration #
#---------------------------------#

artifacts:
  - path: Deployments\MySolution_Deployment.zip
    name: MySolution_Deployment

#---------------------------------#
# deployment configuration #
#---------------------------------#

deploy: off

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Oct, 2014 06:11 AM

    Feodor Fitsner's Avatar

    So, the path in artifacts section is relative path. Make sure that zip file exists after build phase. You can try listing the contents of Deployments folder by adding:

    after_build:
      - dir Deployments
    

    to make sure the file is there.

  2. 2 Posted by kennydust on 18 Nov, 2014 09:53 PM

    kennydust's Avatar

    sorry to hijack. is there an after_package_artifact event?

    the after_build occurs first, before artifacts are generated from what I can tell.

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Nov, 2014 12:18 AM

    Feodor Fitsner's Avatar

    There is a number of hooks at the end of build:

    # on successful build
    on_success:
      - do something
    
    # on build failure
    on_failure:
      - do something
    
    # after build failure or success
    on_finish:
      - do something
    
  4. 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

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM