Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

schibsted/gocd-s3-poller

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Unmaintained, looking for ownership

gocd-s3-poller

Plugin based on JSON API with gocd/sample-plugins/package-material as base.

Maven

  • Build: mvn clean package
  • Run tests: mvn verify

Setup

Build it, and copy target/go-plugins-dist/gocd-s3-poller.jar to plugins dir as described in Go.cd docs.

Configure the plugin in Admin/Package repository, choose s3-poller and enter a bucket name. Remember, you need the AWS credentials available in a way AWS SDK can read them.

Configure it as a Package material in the pipeline, by entering a path the plugin should poll. The folder must exist and there must be at least one file in that folder.

The poller will trigger the pipeline when a file is added to the given bucket and folder. It only triggers on files, not folders.

Todo

  • To get latest revision it cycles all files to get the one with the latest modified date. Problematic for buckets with many files.
  • Implement pagination support in listObjects, by checking isTruncated().

About

Poll AWS S3 bucket and folder for files, and trigger pipeline in GoCD

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages