forked from ValaxyTech/DevOpsDemos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad96402
commit 646b9f9
Showing
1 changed file
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |