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

Poll from Bucket Not Maintained by GoCD

Open steve-gray opened this issue 8 years ago • 3 comments

Scenario:

  • Using Drone CI to do builds, with artifacts being pushed to an S3 bucket (i.e. /app/.zip
  • Using GoCD to then take those artifacts and run them through the gambit of tests and so forth.

Trouble I'm having: how do I structure the bucket or configure the S3 Material Poller? it appears to want an upstream pipelines details when there are none.

steve-gray avatar Dec 21 '16 02:12 steve-gray

The plugins are really designed to work best together. The material plugin specifically looks for metadata set on S3 objects to figure out the latest artifact and upstream pipeline information.

If you are interested to take a stab at making the materials plugin work independently, we would be more than happy!

manojlds avatar Dec 21 '16 02:12 manojlds

Is there any documentation on what the metadata this is expecting is?

-Steve

steve-gray avatar Dec 21 '16 03:12 steve-gray

It is an internal implementation detail, so we haven't documented it (maybe we should).

Relevant code sections - https://github.com/indix/gocd-s3-artifacts/blob/master/utils/src/main/java/com/indix/gocd/utils/store/S3ArtifactStore.java#L174-L186

There has been enough interest in the community to make these plugins work independent of each other, though that's not an use case we have internally. We can take and give help to get this done!

manojlds avatar Dec 21 '16 04:12 manojlds