If your goal is to complete Xcode after the integration is complete, you can do this by adding the "Post-Integration Script" in the "Triggers" tab on the bot configuration screen.

A bash script as follows:
#!/bin/bash kill $(ps aux | grep 'Xcode' | awk '{print $2}')
will be executed upon completion of the integration and destruction process and active Xcode.
source share