This file contains hidden or 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
| #!/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." |