Skip to content

Commit

Permalink
Update S3_Artifact_for_Jenkins.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ValaxyTech authored Feb 12, 2019
1 parent ad96402 commit 646b9f9
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions Jenkins/S3_Artifact_for_Jenkins.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@

1. Create Jenkins Server
# S3 as a artifact for Jenkins

2. Create a S3 bucket to store artifacts
```sh
S3 --> Create bucket
```
Bucket name: valaxy-s3-artifact
Region: Singapore


3. Create new IAM role with "S3 full access" and assign it to jenkins server
IAM --> Create role --> EC2
Permission: AmazonS3FullAccess
Tags: key - Name, Value - S3FullAccess
Role name: S3_Full_Access

4. Install "S3 Publisher" plugin on Jenkins

` Manage Jenkins --> Manage Plugins --> availabe --> S3 publisher `
### Prerequisites
1. Create Jenkins Server
Jenkins server **[Get Help here](https://www.youtube.com/watch?v=M32O4Yv0ANc)

### Setup steps
1. Create a S3 bucket to store artifacts
`S3 --> Create bucket `
```sh
Bucket name: valaxy-s3-artifact
Region: Singapore
```
1. Create new IAM role with "S3 full access" and assign it to jenkins server
`IAM --> Create role --> EC2`
```ssh
Permission: AmazonS3FullAccess
Tags: key - Name, Value - S3FullAccess Role
name: S3_Full_Access
```

5. Create "Amazon S3 profiles" under Configure Systems
` Manage Jenkins --> Configure Systems --> Amazon S3 profiles`
Profile name : s3-artifact-repository
Use IAM Role : chose

6. Create a job to store artifacts under S3.
1. Install "S3 Publisher" plugin on Jenkins
`Manage Jenkins --> Manage Plugins --> Availabe --> S3 publisher`

1. Configure S3 profile on Jenkins
`Manage Jenkins --> Configure Systems --> Amazon S3 profiles`
```sh
Profile name : s3-artifact-repository
Use IAM Role : chose
```

Validations:
Go and check S3 bucket for artifact

1. Create a job to store artifacts under S3.

0 comments on commit 646b9f9

Please sign in to comment.