[FIXED JENKINS-13932] Build can now be failed if package installation fails.
[FIXED JENKINS-16246] Build can now be failed if package uninstallation fails.