AFAIK, the "Build & Deploy" button does not really do the same thing as a command-line "mvn clean install" (e.g. it doesn't run unit-tests for example). If this is a requirement, can you open a JIRA (either as a bug or feature request)?
you can try with below REST endpoint
hope it helps..