salimfadhley/jenkinsapi — pull request #242 by rocktavious (2014-01-30 15:17:52+00:00)
Title: Build invoke fix

job.get_build_triggerurl had invalid logic for determining what build url to be using. Parameterized builds can only be started via the rest API with the buildWithParameters endpoint even if you don't pass any parameters in. This changes the logic to check if there are parameter definiations in the job config, which is present should then return the buildWithParameters endpoint. Since we are now deriving this off of the config there is no reason to pass in previous arguments, so that has been cleaned up.