Skip to content

Instantly share code, notes, and snippets.

View sLokesh-code's full-sized avatar
🏠
Working from home

Lokesh Satyavada sLokesh-code

🏠
Working from home
  • Student
  • Hyderbad,Telangana.India
View GitHub Profile
@iam-veeramalla
iam-veeramalla / upload_jenkins_build_logs.sh
Created January 7, 2025 15:11
upload_jenkins_build_logs.sh
#!/bin/bash
# Variables
JENKINS_HOME="/var/lib/jenkins" # Replace with your Jenkins home directory
S3_BUCKET="s3://your-s3-bucket-name" # Replace with your S3 bucket name
DATE=$(date +%Y-%m-%d) # Today's date
# Check if AWS CLI is installed
if ! command -v aws &> /dev/null; then
echo "AWS CLI is not installed. Please install it to proceed."