I have a Jenkins job and the integration tests require certain resources. I have a shut down hook that ensures that all connections have been closed and worker threads stopped in case there is such a situation that some of them are missed during execution or (as i intended) build is interrupted.However, shut down hooks are not executed if job is interrupted with the UI or something. Is there a way to make it execute, or an event created when job is interrupted before completion? Thanks in advance
Jenkins shut down hook if build is interrupted
928 Views Asked by aiguy At
0
There are 0 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in JENKINS
- How to export credentials from one jenkins instance to another?
- JENKINS Maven Build Failure
- Why does the Jenkins SVN plugin give error E170001 when connecting to my VisualSVN server?
- Jenkins build is stuck pending
- Some of my tests show prepended with junit.framework
- Restrict number of instances of a build in the queue
- how to generate xml report using python-green for unit testing and coverage?
- Behave test runner has no colored output on Jenkins
- Test Selector Plugin Jenkins returns No tests were executed
- jenkins with groovy postbuild .Not able to execute anything in groovy script field
- Not able to build maven project using Maven configured with Jenkins
- Sonnar runner in Jenkins error in java project
- How can I read build.xml parameters into Jenkins ?
- Cannot access file on Jenkins slave with plugin
- Excluding jobs that haven't run recently from a view in Jenkins
Related Questions in JUNIT
- Reopening the application freshly through appium java script for Next Testcase
- Some of my tests show prepended with junit.framework
- Test Selector Plugin Jenkins returns No tests were executed
- Inject EntityManager in SwitchYard Junit implementation
- Java JUnit4: Make simple assertEquals Test pass
- Don't let test stop on failure
- How to test Reply<?> in sitebricks
- Arquillian Embedded Derby database columnDefinition="text"
- How do I write unit test (JUnit) to check Database connection using DAO class?
- Get full path of a package situated in source folder from junit
- How to write a JUnit unit test for database call?
- Unit tests fail to run after upgrade from grails 2.3 to 2.5
- Issues with a UDF
- Unit testing with Liferay 6.2
- What does the "Test Artifact" selector do in Android STudio
Related Questions in SHUTDOWN-HOOK
- Jenkins shut down hook if build is interrupted
- Why Log4j2's RollingFile appender prevents a stand alone application to terminate for 60 sec?
- Handle if a process killed externally
- Shutdown hook exits automatically when debugging it
- java shutdown hook "system cannot find message text"
- Java shutdown hook not launching my Process
- Java ShutDownHook not being fired on Windows
- Java 6 on Linux - Shutdown hook not started by SIGTERM or SIGINT signal
- Neo4j - database shutdown
- Setup ShutdownHook and exit application
- shutdown hook vs finalizer method
- Queries regarding Shutdown hook
- What parts of my application can I access and use during a shutdown hook execution?
- How to exit a process gracefully from windows. Preferrably via GITBASH
- shutdown hook doesn't fire when running with "lein run"
Related Questions in RESOURCE-CLEANUP
- Jenkins shut down hook if build is interrupted
- Qt5: How to create a (cleanup) task that runs once per day at 3:00am?
- Disposing during foreach
- Is there some way to cleanup a Python Package?
- Cleaining up objects with the __del__ method
- Does Android uninstall complete clean up?
- Why close() cannot be called on Closeable classes automatically?
- How to save just 5 recent backups in Spatie Laravel backup?
- Remove all resources from an Azure account
- Delete old self-hosted VSTS build agent _work folders
- How to clean the files on my website that I am not linking to anymore
- How to clean node_modules folder when prepping for deployment
- to clean up on exit or not
- Kineticjs causes memory leaks. Does not release stage after it is destroyed
- designing python api. reliable cleanup vs easy-to-use in interpreter
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?