• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-build-unity / 51
25%
master: 78%

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 20 May 2021 08:26AM UTC
Jobs 3
Files 50
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
51

push

jenkins

Improve keychain cleanup after gradle process kill (#111)

Description
===========

This patch adds a shutdown handler to the `net.wooga.build-io` plugin
to cleanup created build keychains in case of abrupt build process termination.
It uses the `java.lang.Runtime#addShutdownHook` API and registeres a hook
after the `addKeychain` task was executed and removes said hook
when `removeKeychian` was executed. These shutdown hooks run even during normal
termination so it is crucial to only do the work when needed.

I setup a tests that runs a build with a very long task execution in a forked jvm.
The test framework will spawn a new gradle deamon which we will pin to a different
gradle version to find in the process list of macOS. The tests will run with
multiple kill signals to verify the shutdown hook execution.

This whole logic only works for normal kill signals like `TERM` but won't work
for a hard `KILL` signal.

I though about to add more tests to check if the behavior of adding and removing
the shutdown hook works as expected. But in the end it is only important that it
runs correctly during these process shutdown scenarios and that the plugin behaves
normal under normal execution which the other tests already cover.

Changes
=======

* ![IMPROVE] ![MACOS] keychain cleanup after gradle process kill

606 of 1835 relevant lines covered (33.02%)

1.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 51.1 20 May 2021 08:26AM UTC 0
33.02
2 51.2 20 May 2021 08:28AM UTC 0
33.02
3 51.3 20 May 2021 08:28AM UTC 0
91.99
Source Files on build 51
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #51
  • 2ff0d248 on github
  • Prev Build on release/1.x (#50)
  • Next Build on release/1.x (#53)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc