Skip to content

pbcoder21/Cost-Optimization-Jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Cost-Optimization-Jenkins-Logs

Upload Jenkins build logs to an Amazon S3 bucket for Cost Optimization

Script Overview

The script iterates through all jobs and their respective builds in a Jenkins instance.
It identifies build logs created on the current date and uploads them to an Amazon S3 bucket.
It checks for the presence of the AWS CLI to handle S3 uploads.

Pre-Check: Verifies if AWS CLI is installed.
Job Iteration: Loops through each Jenkins job directory.
Build Iteration: Loops through each build directory for the job.
Log Filtering: Checks if the build's log file exists and was modified today.
Upload: Uploads valid log files to the S3 bucket and logs the result.

About

Upload Jenkins build logs to an Amazon S3 bucket for Cost Optimization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages