tag:help.appveyor.com,2012-11-13:/discussions/problems/24932-deploy-stage-not-runningAppVeyor: Discussion 2019-09-27T14:13:08Ztag:help.appveyor.com,2012-11-13:Comment/476093392019-09-10T08:49:04Z2019-09-10T08:49:05ZDeploy stage not running<div><p>Hi,</p>
<p>I can't get my build to deploy to my Octopus server. No errors are raised it just doesn't push the packages. I have other builds that push fine. They have a build phase and this build has a build_script phase. I have a feeling that's the issue but I've tried following the docs and I can't get it to push. My appveyor.yml is below:</p>
<p>version: "{build}"</p>
<p>clone_folder: C:\Projects\my_project</p>
<p>services:<br>
- mssql2016</p>
<p>image: Visual Studio 2017</p>
<p>nuget:<br>
account_feed: true</p>
<p>platform: Any CPU<br>
configuration: Release</p>
<p>environment:<br>
octoKey: secure: MyKey</p>
<p>branches:<br>
only: - master - develop - release - feature - bugfix - hotfix</p>
<p>before_build:<br>
- ps: $env:APPVEYOR_BUILD_FOLDER - ps: $env:APPVEYOR_REPO_BRANCH - C:\Python37\Scripts\pip.exe install -r requirements.txt -q</p>
<p>build_script:<br>
- C:\Python37\Python.exe -m PyInstaller source\my_project.py --onefile --hiddenimport pyodbc --hiddenimport pymssql --hiddenimport sqlalchemy.ext.baked</p>
<p>after_build:<br>
- ps: mkdir packages - ps: octo pack --id=my_company.my_project --version="0.1.30" --basePath="$env:APPVEYOR_BUILD_FOLDER\dist\" --outFolder="$env:APPVEYOR_BUILD_FOLDER\packages\"</p>
<p>artifacts:<br>
- path: \packages*.nupkg name: my_project type: OctopusPackage</p>
<p>deploy:<br>
- provider: Octopus artifact: my_project push_packages: true create_release: true create_release_advanced: --releaseNumber="0.1.30" --packageversion="0.1.30" project: "Transfer Benefit" environment: Prod server: <a href="https://prodoct.comm.bfxprod.com/octopus/api">https://prodoct.comm.bfxprod.com/octopus/api</a> api_key: $(octoKey) push_packages_advanced: --ignoreSslErrors</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-11T14:19:30Z2019-09-11T14:19:31ZDeploy stage not running<div><p>Can anyone help with this?</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-11T21:22:37Z2019-09-11T21:22:37ZDeploy stage not running<div><p>Can you please link to the build.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/476093392019-09-16T07:47:19Z2019-09-16T07:47:22ZDeploy stage not running<div><p>Hi,</p>
<p><a href="https://ci.appveyor.com/project/ITSupport/benefitcatalogue/builds/27334701">https://ci.appveyor.com/project/ITSupport/benefitcatalogue/builds/2...</a></p>
<p>Thanks</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-16T18:19:22Z2019-09-16T18:19:22ZDeploy stage not running<div><p>Can you try omitting the <code>artifact:</code> key from the <code>deploy:</code> settings and let us know the result.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/476093392019-09-20T11:23:07Z2019-09-20T11:23:07ZDeploy stage not running<div><p>Hi,</p>
<p>My comments are not getting approved. That didn't make any difference to build. Still didn't push the package. Anything else we can try?</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-20T15:19:12Z2019-09-20T15:19:12ZDeploy stage not running<div><p>Can you link to a build that had this change but still did not push the package.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/476093392019-09-23T08:24:40Z2019-09-23T08:24:40ZDeploy stage not running<div><p>Hi,</p>
<p>Here is the build: <a href="https://ci.appveyor.com/project/ITSupport/benefitcatalogue">https://ci.appveyor.com/project/ITSupport/benefitcatalogue</a></p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-23T20:46:17Z2019-09-23T20:46:17ZDeploy stage not running<div><p>The last link is for project's latest build. Specific build would have a build id in the url.</p>
<p>Are you sure that your yml config file is the same across all branches? I'm asking because it looks like some of your builds happen on different build images. Does this behaviour of failing to push the octopus package happen on all branches?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/476093392019-09-25T07:52:32Z2019-09-25T07:52:33ZDeploy stage not running<div><p>Cool, my two previous responses have not made it through moderation so I guess that's another day to wait if this one gets through. This is terrible.</p>
<p>It's only in this branch that I am trying to push to Octopus. The appveyor.yml in this branch has not been merged to the other branches yet.</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-25T14:30:10Z2019-09-25T14:30:10ZDeploy stage not running<div><p>Hi James,</p>
<p>It's Feodor here. Could you please drop a link to the specific build which was run with <code>appveyor.yml</code> without <code>artifact:</code> setting? The URL should end with <code>../build/<some_number></code>.</p>
<p>Btw, your messages are reaching us without any issues or moderation. If you feel uncomfortable to use this support ticketing system you can email us at <a href="mailto:team@appveyor.com">team@appveyor.com</a>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/476093392019-09-26T12:40:20Z2019-09-26T12:40:23ZDeploy stage not running<div><p>Hi,</p>
<p>Here is the build: <a href="https://ci.appveyor.com/project/ITSupport/benefitcatalogue/builds/27592168">https://ci.appveyor.com/project/ITSupport/benefitcatalogue/builds/2...</a></p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-26T23:33:02Z2019-09-26T23:33:02ZDeploy stage not running<div><p>That build is PR build therefore deployment was skipped. Deployment phase is not being run in PR builds unless explicitly allowed on project settings (<code>General</code> tab -> <code>Enable deployments in Pull Requests</code>). Let me know how that worked and sorry the resolution took so long.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/476093392019-09-27T10:56:21Z2019-09-27T10:56:22ZDeploy stage not running<div><p>Thank you. I'm now pushing packages. Wooooooooo</p></div>James Andersontag:help.appveyor.com,2012-11-13:Comment/476093392019-09-27T14:13:06Z2019-09-27T14:13:06ZDeploy stage not running<div><p>No worries, thanks for the update!</p></div>Feodor Fitsner