Files
jenkins/core/src/main/java
Vincent Latombe c369723af0 Simplify AtomicFileWriter and use clearer temporary file names (#10058)
* Simplify AtomicFileWriter and use clearer temporary file names

* Uses a more readable name for the temporary file, derived from the target path
* Streamline the fallback logic for atomic move, and just let the error bubble up otherwise rather than logging then throwing which was leading to duplicate stacktraces in the system logs

Related to https://github.com/jenkinsci/jenkins/pull/2548#discussion_r79500936

* Persist fallback to non-atomic move if filesystem throws AtomicMoveNotSupportedException

* Extract to a static method

* Fix reviews
2024-12-19 09:12:07 +00:00
..
2024-12-16 16:27:02 +00:00