Deploy stage not running

James Anderson's Avatar

James Anderson

10 Sep, 2019 08:49 AM

Hi,

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:

version: "{build}"

clone_folder: C:\Projects\my_project

services:
  - mssql2016

image: Visual Studio 2017

nuget:
  account_feed: true

platform: Any CPU
configuration: Release

environment:
  octoKey:
    secure: MyKey

branches:
  only:
    - master
    - develop
    - release
    - feature
    - bugfix
    - hotfix

before_build:
  - ps: $env:APPVEYOR_BUILD_FOLDER
  - ps: $env:APPVEYOR_REPO_BRANCH
  - C:\Python37\Scripts\pip.exe install -r requirements.txt -q

build_script:
  - C:\Python37\Python.exe -m PyInstaller source\my_project.py --onefile --hiddenimport pyodbc --hiddenimport pymssql --hiddenimport sqlalchemy.ext.baked

after_build:
  - 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\"

artifacts:
  - path: \packages\*.nupkg
    name: my_project
    type: OctopusPackage

deploy:
  - 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: https://prodoct.comm.bfxprod.com/octopus/api
    api_key: $(octoKey)
    push_packages_advanced: --ignoreSslErrors

  1. 1 Posted by James Anderson on 11 Sep, 2019 02:19 PM

    James Anderson's Avatar

    Can anyone help with this?

  2. Support Staff 2 Posted by Owen McDonnell on 11 Sep, 2019 09:22 PM

    Owen McDonnell's Avatar

    Can you please link to the build.

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