CleanupStalledJob tool to assist in aborting a job that otherwise cannot be aborted via the UI or command line. The job and its steps are then aborted, freeing up resources. The job is then marked for background deletion.
This tool is delivered in the form of a single
.jar file on GitHub found here.
To get started, download the appropriate
CleanupStalledJob-jar-with-dependencies_v.10.0.2.jar: Use with CloudBees CD/RO v10.0.2 and later.
CleanupStalledJob-jar-with-dependencies_ver6.jar: Use with CloudBees CD/RO up to and including v10.0.1.
<installation-dir>/jre/bin/java -jar /tmp/CleanupStalledJob-jar-with-dependencies_v.10.0.2.jar [options]
<installation-dir>\jre\bin\java -jar c:\tmp\CleanupStalledJob-jar-with-dependencies_v.10.0.2.jar [options]
The path to the
The UUID of the job to clean up.
The name of a file to which output is written.
Path to the passkey file to use. Defaults to
Display command line help.
The steps below assume the
.jar file is downloaded to
/tmp (Linux) or
Locate the UUID of the job you wish to abort.
Highlight and copy UUID of the job for which you want to abort. The screenshot below shows the location of the UUID for the selected job.
Run the command.
<installation-dir>/jre/bin/java -jar \ /tmp/CleanupStalledJob-jar-with-dependencies_v.10.0.2.jar \ - -database-properties <installation-dir>/conf/database.properties \ – -passkey <installation-dir>/conf/passkey \ – -jobId “c6fa2a6a-9bed-11eb-8215-10f00530b5d8” –output “jobid123”
Locate and open
cleanupStalledJob.login the directory where you ran the
CleanupStalledJobcommand. Find the entry indicating that
CleanupStalledJobwas able to find the job. It looks similar to this:
| CleanupStalledJob | Cleaning up job c6fa2a6a-9bed-11eb-8215-10f00530b5d8 . . .