automated terminal push
This commit is contained in:
8
infrastructure/foundation/Jenkinsfile
vendored
8
infrastructure/foundation/Jenkinsfile
vendored
@@ -105,7 +105,7 @@ pipeline {
|
||||
|
||||
# 2️⃣ Bootstrap & cleanup scripts (only if ACTION≠plan AND SKIP_BOOTSTRAP=false)
|
||||
if [ "${ACTION}" != "plan" ] && [ "${SKIP_BOOTSTRAP}" != "true" ]; then
|
||||
for file in bootstrap.sh cleanup.sh; do
|
||||
for file in bootstrap.bash cleanup.bash; do
|
||||
if [ ! -f "$file" ]; then
|
||||
echo "❌ Missing required file: $file"
|
||||
exit 1
|
||||
@@ -117,7 +117,7 @@ pipeline {
|
||||
fi
|
||||
|
||||
# Make scripts executable (if they aren't already)
|
||||
chmod +x bootstrap.sh cleanup.sh || {
|
||||
chmod +x bootstrap.bash cleanup.bash || {
|
||||
echo "⚠️ Could not make scripts executable, but continuing..."
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ sonar.tags=terraform,infrastructure,enterprise-cicd
|
||||
export AWS_REGION="${AWS_REGION}"
|
||||
|
||||
# Run bootstrap script (uses Jenkins credentials)
|
||||
./bootstrap.sh
|
||||
./bootstrap.bash
|
||||
|
||||
# Verify backend configuration was created
|
||||
if [ ! -f backend.tf ]; then
|
||||
@@ -701,7 +701,7 @@ Type 'DESTROY' exactly to confirm:
|
||||
export AWS_REGION="${AWS_REGION}"
|
||||
|
||||
# Run cleanup script (uses Jenkins credentials)
|
||||
./cleanup.sh
|
||||
./cleanup.bash
|
||||
|
||||
echo "✅ Bootstrap cleanup completed"
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user