We have established pipelines scripts that work very well. Lately, we decided to deploy to elastic beanstalk automatically, with the use of bitbucket pipelines and following the tutorial which uses the command 'eb deploy' to deploy. Apparently, this command fails on pipelines. The config files seem legit because it runs locally. It also runs from inside a container of the same image that we have specified in the pipelines file and also by using docker exec from the local to run the command inside a container of the same image. The following are the pipelines file and the error we get using 'eb deploy --verbose' command. I am obviously missing something. Any help or direction would be appreciated. Thanking you in advance.
feature/KKLT-1065-deploy-via-pipelines:
- step:
deployment: staging
caches:
- composer
script:
- php -r "file_exists('.env') || copy('.env.example', '.env');"
- cat .env
- composer install
- php artisan cache:clear
- php artisan migrate
- php artisan db:seed
- eb init KMLT-staging-ttl -r eu-central-1 -p "64bit Amazon Linux 2017.09 v2.6.4 running PHP 7.1"
- eb deploy --verbose
services:
- postgres
+ eb deploy --verboseINFO: Traceback (most recent call last):File "/usr/lib/python2.7/site-packages/ebcli/core/ebrun.py", line 41, in run_appapp.run()File "/usr/lib/python2.7/site-packages/cement/core/foundation.py", line 797, in runreturn_val = self.controller._dispatch()File "/usr/lib/python2.7/site-packages/cement/core/controller.py", line 472, in _dispatchreturn func()File "/usr/lib/python2.7/site-packages/cement/core/controller.py", line 475, in _dispatchself._parse_args()File "/usr/lib/python2.7/site-packages/cement/core/controller.py", line 452, in _parse_argsself.app._parse_args()File "/usr/lib/python2.7/site-packages/cement/core/foundation.py", line 1076, in _parse_argsfor res in self.hook.run('post_argument_parsing', self):File "/usr/lib/python2.7/site-packages/cement/core/hook.py", line 150, in runres = hook[2](*args, **kwargs)File "/usr/lib/python2.7/site-packages/ebcli/core/hooks.py", line 35, in pre_run_hookset_profile(app.pargs.profile)File "/usr/lib/python2.7/site-packages/ebcli/core/hooks.py", line 47, in set_profileprofile = commonops.get_default_profile()File "/usr/lib/python2.7/site-packages/ebcli/operations/commonops.py", line 973, in get_default_profileprofile = get_config_setting_from_branch_or_default('profile')File "/usr/lib/python2.7/site-packages/ebcli/operations/commonops.py", line 1008, in get_config_setting_from_branch_or_defaultsetting = get_setting_from_current_branch(key_name)File "/usr/lib/python2.7/site-packages/ebcli/operations/commonops.py", line 991, in get_setting_from_current_branchbranch_name = source_control.get_current_branch()File "/usr/lib/python2.7/site-packages/ebcli/objects/sourcecontrol.py", line 184, in get_current_branchstdout, stderr, exitcode = self._run_cmd(revparse_command, handle_exitcode=False)File "/usr/lib/python2.7/site-packages/ebcli/objects/sourcecontrol.py", line 480, in _run_cmdstdout, stderr, exitcode = exec_cmd(cmd)File "/usr/lib/python2.7/site-packages/cement/utils/shell.py", line 40, in exec_cmdproc = Popen(cmd_args, *args, **kw)File "/usr/lib/python2.7/subprocess.py", line 390, in __init__errread, errwrite)File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_childraise child_exceptionOSError: [Errno 2] No such file or directoryINFO: OSError - [Errno 2] No such file or directory
I got the exact same error, any luck?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.