continuous integration - Wercker Firebase Deployment issue -
i trying automate deployment firebase hosting via wercker , continously getting error.
following tutorial
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
- log out of fire base on local , try perform firebase list - should error
- try same --token passing token , list of valid projects if token valid.
- take valid project name , token , hardcode in yml , try once make sure build executes properly
- finally when working , expose protected variables , works charm!!.
Comments
Post a Comment