Deploy Artifact

Barrie Hughes's Avatar

Barrie Hughes

06 Jul, 2019 05:01 AM

Hi

I think I've followed the instruction to deploy the build artifacts however they don't appear the S3 buckets and there are not log messages. Can you suggect how to debug. I've tried two s3 accounts both not receiving the files.

Build and account details are in the attached image

Thanks

  1. 1 Posted by Ilya Finkelshte... on 08 Jul, 2019 07:08 PM

    Ilya Finkelshteyn's Avatar

    Hi Barrie,

    Can you please share your build configuration in YAML format (use Export YAML menu is you use UI)? Feel free to make this discussion private if needed.

    Ilya.

  2. 2 Posted by Barrie Hughes on 09 Jul, 2019 05:49 AM

    Barrie Hughes's Avatar

    Hi IIya,

    Thanks for picking this issue up.

    YAML file below:-

    version: 1.0.{build}
    image: Visual Studio 2019
    environment:
      matrix:
      - nodejs_version: 10
    install:
    - ps: Install-Product node $env:nodejs_version
    cache: ./release
    build_script:
    - cmd: >-
        node --version
        npm --version
        npm install
        npm install -g @angular/cli@8.0.6
        ng --version
        npm install @ngrx/entity
        npx babel bridge --out-dir bridge1
        ng build --base-href ./
        npm run dist
    artifacts:
    - path: release
      name: seersweep
      type: WebDeployPackage
    deploy:
    - provider: S3
      access_key_id: A***********************A
      secret_access_key:
        secure: h******************************************************************v
      region: ap-southeast-2
      bucket: *****-release
      folder: v1
      artifact: release
    
  3. 3 Posted by Ilya Finkelshte... on 09 Jul, 2019 04:47 PM

    Ilya Finkelshteyn's Avatar

    Please try using artifact name (seersweep) instead of path (release) in the deployment settings, e.g.

    deploy:
    - provider: S3
      ...
      artifact: seersweep
    

    Let us know if this helps.

  4. 4 Posted by Barrie Hughes on 09 Jul, 2019 06:23 PM

    Barrie Hughes's Avatar

    Hi IIya,

    Thanks that did the trick, replying to my S3 now

  5. 5 Posted by Ilya Finkelshte... on 10 Jul, 2019 05:58 PM

    Ilya Finkelshteyn's Avatar

    Great, thanks for the update!

  6. Ilya Finkelshteyn closed this discussion on 10 Jul, 2019 05:58 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