Jenkins Pipeline and External API Integration: Idempotency during retry(N) execution
The retry(N) step in Jenkins Pipeline is designed to re-execute a block of code upon failure. However, this mechanism does not track side effects or state changes that occurred during previous attempts within the same block. When integrating Jenkins with external systems—such as REST APIs or databases—a failure occurring after a write operation but before th