Help with build

#1

Hi I am starting to use bitrise but my build is failing giving the following error

    Using cordova-fetch for cordova-android@6.3.0
Failed to fetch platform cordova-android@6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code EINTEGRITY
npm ERR! sha512-8SVKQoMcib6EJKX5QXuNwyJhF8FW25TNyRYsRKWRUE1/uf6ElQmTbz7qgrqG2Qk6ItMtaTf0IfJCeGvDq/1Fjg== integrity checksum failed when using sha512: wanted sha512-8SVKQoMcib6EJKX5QXuNwyJhF8FW25TNyRYsRKWRUE1/uf6ElQmTbz7qgrqG2Qk6ItMtaTf0IfJCeGvDq/1Fjg== but got sha512-96p2A/P4/KRbg6rowl0vq1QMhIQh89f6xQ9gkRPMFyrUmgFTlgF7vSEZP6DLqcS1pgJDPcE+ctYLYsWSPpuPYg==. (83090 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vagrant/.npm/_logs/2019-07-02T04_53_12_495Z-debug.log
[ERROR] An error occurred while running subprocess cordova.
        
        cordova platform add android --save exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
command failed, error: exit status 1

I specifically use cordova android 6.3.0

This is my yml

---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ionic
trigger_map:
- push_branch: "*"
  workflow: primary
- pull_request_source_branch: "*"
  workflow: primary
workflows:
  primary:
    steps:
    - activate-ssh-key@4.0.3:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.14: {}
    - script@1.1.5:
        title: Do anything with Script step
    - certificate-and-profile-installer@1.10.1: {}
    - npm@1.0.2:
        inputs:
        - command: cache clean --force
        - command: install
        - command: cordova platform remove android
        - command: cordova platform add android@6.3.0
    - generate-cordova-build-configuration@0.9.6: {}
    - ionic-archive@2.0.0:
        inputs:
        - configuration: debug
        - cordova_version: ''
        - target: emulator
    - deploy-to-bitrise-io@1.6.0: {}
app:
  envs:
  - opts:
      is_expand: false
    IONIC_PLATFORM: ios,android

It looks like the platform is not properly installed, but I can’t find a place to get commands to run, like corodova uninstall platform and so on…

0 Likes

#2

Sorry to hear about the issue! Could you also include an URL to this build please?

0 Likes

#3

Hi,

Thanks in advance.

0 Likes

#4

Hi again, now build is failing with following code

Script file does't exist and will be skipped: /Users/vagrant/git/hooks/copy_android_notification_icons.js
0 Likes