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:

  • How do I setup Cordova?
  • Is it possible to download a large file outside of repository on `git clone`?
  • Cordova 3.3.1-0.1.2 (Phonegap) plugins doesn't work
  • Unable to install plugins in cordova project
  • Cordova issue when getting from git plugin wakeuptimer
  • Installing PhoneGap getting “error not found: git”
  • 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/jenkins8265180785352095221.sh
    + platform rm ios –no-telemetry –no-update-notifier
    /var/folders/sj/01rfz4rx1ws_smjvggb_klzw0000gq/T/jenkins8265180785352095221.sh: 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:
    /usr/local/bin/cordova

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

  • git-p4 migrates perforce “main” branch into git branches as subdirectories (doubled code in git branches)
  • Git clone hangs on Receiving objects on MAC OSX 10.12
  • Intellij IDEA: fatal: bad revision 'HEAD'
  • Customizing bash prompt (PS1) for git branches with colors
  • git is ignoring files that aren't in .gitignore?
  • error: git checkout-index: unable to create file (Permission denied)
  • Git Baby is a git and github fan, let's start git clone.