tag:help.appveyor.com,2012-11-13:/discussions/problems/12599-appveyor-builds-have-stopped-working-due-to-cakecore-versionAppVeyor: Discussion 2018-10-19T08:18:41Ztag:help.appveyor.com,2012-11-13:Comment/448152442018-02-28T17:43:21Z2018-02-28T17:43:21ZAppveyor builds have stopped working due to Cake.Core version<div><p>Hi Scott,</p>
<p>We need a little bit more information to help:</p>
<ul>
<li>Link to first failed build</li>
<li>Link to last successful build</li>
<li>Build configuration in YAML format (use <code>Export YAML</code> if you use UI, and feel free to delete all confidential information from the file).</li>
</ul>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/448152442018-03-05T17:30:09Z2018-03-06T00:23:11ZAppveyor builds have stopped working due to Cake.Core version<div><p>First failed build: <a href="https://ci.appveyor.com/project/agidea/footfall-data-validation-system/build/1.0.762">https://ci.appveyor.com/project/agidea/footfall-data-validation-sys...</a><br>
Last successful build: <a href="https://ci.appveyor.com/project/agidea/footfall-data-validation-system/build/1.0.761">https://ci.appveyor.com/project/agidea/footfall-data-validation-sys...</a><br>
Build configuration:</p>
<pre>
<code># Notes:
# Appveyor reference: https://www.appveyor.com/docs/appveyor-yml/
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: '1.0.{build}'
# branches to build
branches:
# whitelist
only:
- master
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
init:
# More info here: https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
environment:
# DO NOT put privileged information in this section, instead use the secure variables
# as detailed here: https://www.appveyor.com/docs/build-configuration/#secure-variables
# And use this tool to encrypt: https://ci.appveyor.com/tools/encrypt
DVS_CONNECTION_STRING:
secure: pBKyb7ba61gPYLF1CdCf1YjJThKmhxsHGQL4a+1ySDo8P6O4+PclYFYgJLFwTMLOjOJbP0IFduWCPqNacKWygy85PS29RHgShiCRLGEi5XHe02Q2vGqTMpn6XKp9d1JLV3vbsOUzB5bEKKG6d3978w==
IDENTITY_CONNECTION_STRING:
secure: pBKyb7ba61gPYLF1CdCf1dWa3jtjuRtLoOYypTwKP3llwOaCAe6NGpI0oj9fGwJPqPOY5iuZ3HzQmkGfk6ADVT2IcRgbSP+WPuNvQ/yCNXd4TGaklDyvkN+k473R90kGiFdKJz1ejoKtfkxsap4wQg==
TST_CONNECTION_STRING:
secure: pBKyb7ba61gPYLF1CdCf1SDzQfU+uX5tmev2qNv3h1XmtpktydImnFfB1OiM9+HH7tKBbqanoOL520mdkb9D19earpNz/ZjTc+APSfxsm9C48nVLPLC/qlnTLiD39nSULr/VGxSjgh29NsI5XGoXsA==
APPVEYOR_RDP_PASSWORD: 2h0fPpGPJ7ca
SMTP_USERNAME:
secure: 36WqxXpJRtT+A9vNdR3DKw5pizwKUN+XeUQNkyUJE34=
SMTP_PASSWORD:
secure: QQHkbhu67I8Ig2B+Vo6CuhjyX6QgfcsCUs2rcblVYmk3oERhGeaVaDui2Acgfeov
services:
# For more services supported by AppVeyor: https://www.appveyor.com/docs/services-databases/
- iis
install:
- WebpiCmd /Install /Products:UrlRewrite2 /AcceptEula /OptInMU /SuppressPostFinish
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(APPVEYOR_BUILD_VERSION)
assembly_file_version: $(APPVEYOR_BUILD_VERSION)
#---------------------------------#
# 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: Release
build:
verbosity: minimal
# scripts to run before build
before_build:
- cmd: c:\Windows\system32\inetsrv\appcmd set config /section:anonymousAuthentication /enabled:true
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:
# scripts to run after build
after_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
- ps: . ./build.ps1 -Target build
# to disable automatic builds
#build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# scripts to run before tests
before_test:
# scripts to run after tests
after_test:
- ps: . ./build.ps1 -Target package
# to run your custom scripts instead of automatic tests
test_script:
- ps: . ./build.ps1 -Target unit-tests
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\src\Footfall\artifacts\_PublishedWebsites\Footfall_Package
name: FootfallWebApp
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
# Amazon S3 deployment provider settings
- provider: S3
access_key_id: AKIAILTZACHNJGBOVYKA
secret_access_key:
secure: D5y7EQepxwM3Fsf1PSAlGTE1mEeMylBzJuGU1MoON5OGfQwIVMCLBsu2h+7ECW3A
region: eu-west-1
bucket: springboard-dvs-deployment
folder:
artifact:
max_error_retry: 1
unzip: true
reduced_redundancy: true
on:
branch:
- master
# scripts to run before deployment
before_deploy:
- ps: ./InstallSelfSignedCert.ps1
# scripts to run after deployment
after_deploy:
- ps: . ./build.ps1 -Target deploy
- ps: ./environment_variables.ps1
- ps: . ./build.ps1 -Target integration-tests
# to run your custom scripts instead of provider deployments
deploy_script:
# to disable deployment
#deploy: off
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
# on build failure
on_failure:
# after build failure or success
on_finish:
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
- development@spring-board.info<mailto:development@spring-board.info>
subject: "Build {{status}}: {{projectName}} {{buildVersion}}"
on_build_success: true
on_build_failure: true
on_build_status_changed: true</code>
</pre>
<p>Scott Vaughan</p>
<p>Developer</p>
<p>[Agidea LinkedIn page]<a href="https://www.linkedin.com/company/18210594/">https://www.linkedin.com/company/18210594/</a> [Agidea Twitter page] <a href="https://twitter.com/agidea_hq">https://twitter.com/agidea_hq</a> [Agidea Facebook page] <a href="https://www.facebook.com/agideahq/">https://www.facebook.com/agideahq/</a></p>
<p>[Agidea logo]<a href="https://www.agidea.uk/">https://www.agidea.uk/</a></p>
<p>E: <a href="mailto:scott@agidea.uk">scott@agidea.uk</a><a href="mailto:scott@agidea.uk">scott@agidea.uk</a><br>
W: agidea.uk<a href="https://www.agidea.uk/">https://www.agidea.uk/</a><br>
T: 0161 875 2390<a>tel:+44161%20875%202390</a><br>
A: Map - Warren Bruce Court, Manchester M17 1LB<a href="https://www.google.co.uk/maps/place/AGIDEA/@53.4675849,-2.3062294,17z/data=!3m1!4b1!4m5!3m4!1s0x487bae656e4cda71:0x2d1b361fddcad410!8m2!3d53.4675849!4d-2.3040407">https://www.google.co.uk/maps/place/AGIDEA/@53.4675849,-2.3062294,17z/data=!3m1!4b1!4m5!3m4!1s0x487bae656e4cda71:0x2d1b361fddcad410!8m2!3d53.4675849!4d-2.3040407</a><br>
[Microsoft Partner Network logo]<a href="https://partner.microsoft.com/en-gb">https://partner.microsoft.com/en-gb</a> [Crown Commerical Service Supplier logo] [Scrum Alliance logo] <a href="https://www.scrumalliance.org/">https://www.scrumalliance.org/</a> [Investors in people logo]<a href="https://www.investorsinpeople.com/">https://www.investorsinpeople.com/</a> [Cyber Essentials logo] <a href="https://www.cyberessentials.ncsc.gov.uk/">https://www.cyberessentials.ncsc.gov.uk/</a> [Umbraco logo] <a href="https://umbraco.com/partners/umbraco-partnerships/partners-index/">https://umbraco.com/partners/umbraco-partnerships/partners-index/</a></p>
<p>On 28 Feb 2018, at 17:43, Ilya Finkelshteyn > wrote:</p></div>Scott Vaughantag:help.appveyor.com,2012-11-13:Comment/448152442018-03-06T00:42:24Z2018-03-06T00:42:24ZAppveyor builds have stopped working due to Cake.Core version<div><p>I see, don't you think that this is issue described <a href="https://github.com/cake-contrib/Cake.MsDeploy/issues/29">here</a>?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/448152442018-03-06T19:48:07Z2018-03-06T19:48:07ZAppveyor builds have stopped working due to Cake.Core version<div><p>Hello Scott,</p>
<p>I am a member of the Cake Team. The issue that you are describing happened due to two things. The first is that with the 0.26.0 release of Cake, we introduced a breaking change. You can find more information about this breaking change in the release notes here:</p>
<p><a href="https://github.com/cake-build/cake/releases/tag/v0.26.0">https://github.com/cake-build/cake/releases/tag/v0.26.0</a></p>
<p>Due to this breaking change, we added code to detect if the addin's being loaded into the Cake process are compiled against at least 0.26.0. If they aren't, we throw an error, and that is what you are seeing in the output.</p>
<p>The second thing that happened is that it would appear that you are not pinning to a specific version of Cake. We always recommend that you do this, and this is documented in the getting started guide here:</p>
<p><a href="https://cakebuild.net/docs/tutorials/getting-started">https://cakebuild.net/docs/tutorials/getting-started</a></p>
<p>And also in this tutorial here:</p>
<p><a href="https://cakebuild.net/docs/tutorials/pinning-cake-version">https://cakebuild.net/docs/tutorials/pinning-cake-version</a></p>
<p>Since you haven't pinned to a specific version, each time you run the build on AppVeyor, the bootstrapper downloads the latest version of Cake, and as a result, you see the error above.</p>
<p>For now, I would recommend that you pin to version 0.25.0 of Cake, and also pin all your addin/tool versions as well, that way, you will get the most repeatable, and reliant builds.</p>
<p>Hope that helps!</p>
<p>Gary</p></div>gep13