Elastic Beanstalk Artifact on ubuntu build agent

mabrahams675's Avatar

mabrahams675

27 Jun, 2018 03:54 AM

Hi,
I'm trying to deploy to my EBS environment and getting the Error Artifact type is Zip, must be ElasticBeanstalkPackage..

I'm using ubuntu build agent and I'm creating the zip with 7z in the after_build stage. I'm trying to add the artifact with the below yaml

artifacts:
    - path: deploy-staging.zip
      name: deploypackage
      type: ElasticBeanstalkPackage

I believe that block to be correct based on - https://www.appveyor.com/docs/deployment/amazon-elastic-beanstalk/

The artifact uploads, but is still listed as Zip in the console and won't be accepted by the deploy environment. It's as if the type parameter is being ignored. I've also tried a few other naming variations with no luck either.

For windows environment if I use Push-Artifact with -Type ElasticBeanstalkPackage, it works but for this project I'd like to use ubuntu.

  1. Support Staff 1 Posted by Owen McDonnell on 27 Jun, 2018 06:22 AM

    Owen McDonnell's Avatar

    So are you using an inline deployment (provider: ElasticBeanstalk) or environment deployment ( provider: Environment)?... more details here

    Provided this is not a private build could you link to it?

  2. 2 Posted by mabrahams675 on 27 Jun, 2018 11:01 PM

    mabrahams675's Avatar

    It is a private build.

    I'm deploying using environments but for production branches I don't use CD, I'll build the artifact then manually deploy (in appveyor console) to one of the production environments. So there's nothing about deploy in the yaml. The full yaml is

      image: ubuntu
    
      stack: node 8
    
      install:
        - npm install
    
      test: off
    
      build: off
    
      build_script:
        # build project for release
        - sh ./build.sh
    
      after_build:
        # create the zip
        - sh ./package-staging.sh
    
      artifacts:
        - path: deploy-staging.zip
          name: deploypackage
          type: ElasticBeanstalkPackage
    
  3. Support Staff 3 Posted by Ilya Finkelshte... on 28 Jun, 2018 12:20 AM

    Ilya Finkelshteyn's Avatar

    Please watch https://github.com/appveyor/ci/issues/2473. Will fix this asap. Sorry for the trouble.

  4. 4 Posted by mabrahams675 on 28 Jun, 2018 01:09 AM

    mabrahams675's Avatar

    Thanks, no problems, I can work around it in the mean time.

  5. Support Staff 5 Posted by Ilya Finkelshte... on 28 Jun, 2018 01:12 AM

    Ilya Finkelshteyn's Avatar

    More specifically fix should be in production within a week from now. I can propose you a super ugly workaround based on this. So you can have a Windows build to wait for Linux build, download artifact created on Linux build and publish it as ElasticBeanstalkPackage type. Admittedly it is not nice, just and option.

  6. 6 Posted by mabrahams675 on 13 Jul, 2018 04:59 AM

    mabrahams675's Avatar

    I can see that it's working today, thanks @Ilya

  7. Support Staff 7 Posted by Ilya Finkelshte... on 13 Jul, 2018 06:20 AM

    Ilya Finkelshteyn's Avatar

    Oh, I maybe should have update the the thread earlier. It worked since GH issue closed.

  8. Ilya Finkelshteyn closed this discussion on 12 Sep, 2018 09:00 PM.

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