continuous integration - Wercker Firebase Deployment issue -


i trying automate deployment firebase hosting via wercker , continously getting error.

following tutorial

https://medium.com/@pradeep1991singh/integrate-wercker-with-bitbucket-firebase-and-slack-7eb3bc38543d

stack trace

> export wercker_step_root="/pipeline/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af" export wercker_step_id="script-5ea4a2c6-b11f-4972-991a-eec61b3d43af" export wercker_step_owner="wercker" export wercker_step_name="script" export wercker_report_numbers_file="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/numbers.ini" export wercker_report_message_file="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/message.txt" export wercker_report_artifacts_dir="/report/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/artifacts" source "/pipeline/script-5ea4a2c6-b11f-4972-991a-eec61b3d43af/run.sh" < /dev/null [2017-08-15t13:38:45.071z] ---------------------------------------------------------------------- [2017-08-15t13:38:45.076z] command:       /usr/local/bin/node /usr/local/bin/firebase deploy --project --token --debug [2017-08-15t13:38:45.076z] cli version:   3.9.2 [2017-08-15t13:38:45.076z] platform:      linux [2017-08-15t13:38:45.076z] node version:  v7.10.1 [2017-08-15t13:38:45.077z] time:          tue aug 15 2017 13:38:45 gmt+0000 (utc) [2017-08-15t13:38:45.077z] ---------------------------------------------------------------------- [2017-08-15t13:38:45.091z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] [2017-08-15t13:38:45.091z] > no authorization credentials supplied or found  ⚠  cli authentication needs updated take advantage of new features. ⚠  please run firebase login --reauth [2017-08-15t13:38:45.093z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"] [2017-08-15t13:38:45.093z] > no authorization credentials supplied or found 

the issue related wercker.yml file. step not defined , seems environment variable wasnt getting read properly.

steps narrow down issue

  1. log out of fire base on local , try perform firebase list - should error
  2. try same --token passing token , list of valid projects if token valid.
  3. take valid project name , token , hardcode in yml , try once make sure build executes properly
  4. finally when working , expose protected variables , works charm!!.

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -