pipeline - copy file from s3 bucket example

87 views
Skip to first unread message

ncvg...@gmail.com

unread,
Feb 9, 2017, 1:38:25 PM2/9/17
to Jenkins Users
Hi,
I've installed s3copyartifact and S3BucketPublisher, i am trying to use s3copyartifact  but i can't find any example any where.

Lets say, on a earlier build (lets say build #23), i published an artifact to a s3 bucket, using this:

step([$class: 'S3BucketPublisher', entries: [[
sourceFile: "**/*.zip",
bucket: "my-builds",
selectedRegion: 'us-east-1',
noUploadOnFailure: true,
managedArtifacts: true,
flatten: true,
showDirectlyInBrowser: true,
        keepForever: true,
]],
profileName: 'myprofile',
dontWaitForConcurrentBuildCompletion: false, 
])

On the next build, i want to download build's #23's zip file from bucket: 'my-builds'. How do i do it? Please help

thanks,
Reply all
Reply to author
Forward
0 new messages