s3 deployment

PhilPhil's Avatar

PhilPhil

07 May, 2017 10:04 PM

I am trying to deploy to s3 with a yaml definition attached. When I do I get the results in the other attachement. I encrypted the aws access key and secret via the UI and then set them directly (removed just for the screenshots).

When I go to s3, there is no artifact there. I changed the secret key to a wrong value ('v') and I received the same results from the build.

Is there anyway to see what exactly is happening during the deploy process? logs or debug output? Now I am not sure what is wrong, maybe my secrets, or something else all together?

Any ideas?

Thanks!

  1. 1 Posted by PhilPhil on 07 May, 2017 10:35 PM

    PhilPhil's Avatar

    To add to this, I tried defining the file as an artifact in the yaml file with:

    artifacts:
      path: '.\packaging\windows\tidal-0.0.0.msi'
    

    and the output in the build looks more promising (attached) but I still cant see a file in s3.

  2. Support Staff 2 Posted by Feodor Fitsner on 07 May, 2017 10:57 PM

    Feodor Fitsner's Avatar

    Define artifact as:

    artifacts:
      path: '.\packaging\windows\tidal-0.0.0.msi'
      name: msi
    

    then in S3 deployment provider settings use msi deployment name instead of path:

    deploy:
    - provider: S3
      artifact: msi
      ...
    
  3. 3 Posted by PhilPhil on 08 May, 2017 04:30 PM

    PhilPhil's Avatar

    Oh got it. That works! Thanks.

  4. 4 Posted by PhilPhil on 08 May, 2017 09:28 PM

    PhilPhil's Avatar

    If I want multiple artifacts in the deploy section. Is this possible in any way?

  5. Support Staff 5 Posted by Ilya Finkelshte... on 08 May, 2017 09:32 PM

    Ilya Finkelshteyn's Avatar

    Sure you can have multiple artifacts and multiple deployments each for specific artifact. Easiest way to get YAML for this is to set this in UI and then use Export YAML menu.

  6. 6 Posted by Phil on 09 May, 2017 12:27 AM

    Phil's Avatar

    Ok thanks. Is there a reference or doc that shows how? I'd rather not go and fill out the UI with all the info twice.

  7. Support Staff 7 Posted by Ilya Finkelshte... on 09 May, 2017 12:42 AM

    Ilya Finkelshteyn's Avatar

    Here are few links you can get this information from:
    https://www.appveyor.com/docs/appveyor-yml/
    https://www.appveyor.com/docs/packaging-artifacts/#basics
    https://www.appveyor.com/docs/deployment/

    But using UI to create initial template is really the fastest way.

  8. 8 Posted by PhilPhil on 09 May, 2017 01:07 AM

    PhilPhil's Avatar

    Ok great thanks. I did it via the UI and exported it and it created a line:
    artifact: 'art1','art2'

    I looked through those links and others and I couldn't find this syntax anywhere. It is also not so obvious as the key is singular but the value is a comma separated list.

    I created a pull request here to help clarify for people in the future.

    https://github.com/appveyor/website/pull/297

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2017-05-07_at_6.00.48_PM.png 105 KB
  • Screen_Shot_2017-05-07_at_6.01.23_PM.png 33.1 KB

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