gocd-s3-artifacts icon indicating copy to clipboard operation
gocd-s3-artifacts copied to clipboard

Document using plugin from yaml

Open fire opened this issue 7 years ago • 1 comments

Hi indix,

Could you document how to use from yaml?

https://github.com/tomzo/gocd-yaml-config-plugin#plugin

Thank you.

fire avatar Dec 11 '17 17:12 fire

For publishing to S3, the secret sauce is how the array of source and destinations needs to be represented - a string of JSON. So this example task works for me:

  tasks:
     - plugin:
         options:
             sourceDestinations: "[{source: 'dist/*', destination: ''}]"
             destinationPrefix: "/"
             artifactsBucket: "optional-bucket-name-to-override-env-variable"
         run_if: passed
         configuration:
             id: indix.s3publish
             version: 1

luckyrat avatar Aug 07 '18 12:08 luckyrat