automated terminal push
This commit is contained in:
4
infrastructure/foundation/Jenkinsfile
vendored
4
infrastructure/foundation/Jenkinsfile
vendored
@@ -711,8 +711,8 @@ Type 'DESTROY' exactly to confirm:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate backend resources
|
# Validate backend resources
|
||||||
BUCKET_NAME=$(terraform output -raw terraform_state_bucket_name 2>/dev/null)
|
BUCKET_NAME=$(terraform output -raw terraform_state_bucket_name 2>/dev/null || true)
|
||||||
TABLE_NAME=$(terraform output -raw terraform_locks_table_name 2>/dev/null)
|
TABLE_NAME=$(terraform output -raw terraform_locks_table_name 2>/dev/null || true)
|
||||||
|
|
||||||
if [ -n "$BUCKET_NAME" ] && [ "$BUCKET_NAME" != "null" ]; then
|
if [ -n "$BUCKET_NAME" ] && [ "$BUCKET_NAME" != "null" ]; then
|
||||||
echo "✅ S3 backend bucket: $BUCKET_NAME"
|
echo "✅ S3 backend bucket: $BUCKET_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user