Jenkins Job with appium in pre-build action is not running Maven project

I have Jenkin job that runs a maven project . I added start of appium server as pre build action but it doesn’t perform any action after starting the appium server.

I expect it to go to POM.xml after pre build action (/usr/local/bin/node /usr/local/lib/node_modules/appium/build/lib/main.js)

Job log

workspace] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/

  • /usr/local/bin/node /usr/local/lib/node_modules/appium/build/lib/main.js
    [Appium] Welcome to Appium v1.6.4 (REV 6c34fa12f57d8dfa24ab6eedd3012646a487240f)
    [Appium] Appium REST http interface listener started on