Download file from nexus repository11/19/2023 The first stage requires a credential to log in to Nexus. You have options to either create the credentials with the same IDs or replace the IDs with your values in this script. Configure this job & add below pipeline script.Create a new job in Jenkins of type Pipeline.You can use the free tier for this exercise. Create a free AWS account, if don’t already have one.It can be any file, but I chose a PNG image file. A file already uploaded to the above-mentioned Nexus repository - The pipeline will retrieve this file & upload it to the S3 bucket. I created a repository with the name: s3-repo. Nexus repository (raw type) - You can also use a different type of Nexus repository.AWS Access Key ID & Secret Access Key - It should have write permissions on the pre-existing S3 bucket.AWS free tier ( if you aren’t an existing AWS customer).This post explains how we can quickly set up this pipeline. We were using AWS Lambdas & the web application was meant to be served from the S3 bucket. A few months ago, I was asked to set up a Jenkins pipeline that retrieves the artifact, a zip file containing the JavaScript web application code, from a Nexus repository and then upload that zip file to an AWS S3 bucket.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |