Platform command not found for Jenkins for ios build?

I configured Jenkins for 3 platforms Android, ios and windows.
My shell script snippet as below:

$CORDOVA_PATH platform rm $PLATFORM --no-telemetry --no-update-notifier 
$CORDOVA_PATH platform add $PLATFORM --no-telemetry --no-update-notifier
$CORDOVA_PATH build $PLATFORM --no-telemetry --no-update-notifier

Here, mac slave launched from mac m/c using http:windows-ipaddress/8080 so it is successfully automated build generated for android and windows but for ios it throws an error such as:

  • Adding plugins from specific revision Github project to the Cordova project
  • Directory structure for cross-platform phonegap project
  • Installing PhoneGap getting “error not found: git”
  • failed to create task or type checkenv Cause The name is undefined
  • Unable to add plugins with Cordova 3.3.0 CLI on Windows - '“git” command line tool is not installed: …"
  • Trying to install cordova with 'npm.cmd' but automatically close after a few second
  • Checking out Revision 592d5aea08cbe6c73c37fecf2ae60020a9fd404f (origin/helloCordova)

    git config core.sparsecheckout # timeout=10
    git checkout -f 592d5aea08cbe6c73c37fecf2ae60020a9fd404f
    git rev-list 592d5aea08cbe6c73c37fecf2ae60020a9fd404f # timeout=10
    [ios] $ /bin/sh -xe /var/folders/sj/01rfz4rx1ws_smjvggb_klzw0000gq/T/
    + platform rm ios –no-telemetry –no-update-notifier
    /var/folders/sj/01rfz4rx1ws_smjvggb_klzw0000gq/T/ line 2: platform: command not found
    Build step ‘Execute shell’ marked build as failure
    Finished: FAILURE

    Already added cordova_path for ios in mac slave is as per below:

    mac machine is not fetching a particular configurations for cordova ?
    Any help/suggestions welcomed/accepted.

  • Completely cancel a rebase
  • How to use Jekyll and Github Pages to build personal website
  • 403 error when pushing to GitHub
  • Git Push/Pull VS 2015 Issue
  • git-review -> promote draft to code-review
  • How to recover after i execute :git reset --hard HEAD
  • Git Baby is a git and github fan, let's start git clone.