Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell plugin config #1309

Open
4 tasks done
frimdo opened this issue Mar 12, 2017 · 4 comments
Open
4 tasks done

Shell plugin config #1309

frimdo opened this issue Mar 12, 2017 · 4 comments

Comments

@frimdo
Copy link

frimdo commented Mar 12, 2017

  • You're running the latest release version of PHPCI.
  • Ensure that you're running at least PHP 5.3.6, you can check this by running php -v
  • You've run composer install --no-dev -o from the root of your installation.
  • You have set up either the PHPCI Worker, Daemon or Cron Job to run builds.

Brief issue explanation

When shell plugin is enabled by the wiki page, the shell is still disabled. I guess that the wiki is deprecated, and the shell plugin should be enabled in config.yml.

Expected behaviour

Shell plugin being enabled when configured according to wiki page

Actual behaviour

Build log of project that uses shell plugin looks like this

Cloning into '/var/www/html/PHPCI/build/3_3ca47'...

cde038b4d7e8ed768d9be6c9e63a7f684c0391c6
Working copy created: /
RUNNING PLUGIN: shell
Exception: The shell plugin is not enabled. Please enable it via config.yml.
PLUGIN: FAILED
Exception: Plugin failed: shell
RUNNING PLUGIN: shell
Exception: The shell plugin is not enabled. Please enable it via config.yml.
PLUGIN: FAILED
Removing Build.

Steps to reproduce

  1. Configure PHPCI by the wiki page
  2. Build project that uses shell plugin

Environment info

Operating System:

Debian GNU/Linux 8 

PHP Version:

PHP 7.1.2 (cli) (built: Feb 28 2017 17:47:07) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

MySQL Version:

mysql  Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using  EditLine wrapper
@frimdo
Copy link
Author

frimdo commented Mar 13, 2017

Update: The plugin is enabled when configured according to wiki page, so the only issue is the message that says that it should be configured using config.yml

@vaanholtje
Copy link

vaanholtje commented Mar 27, 2017

Here the same problem system says its enabled but still getting the anoying message that causes builds to fail. Running php 5.6

@vaanholtje
Copy link

Restart of the worker was the solution!

@rafaelmb
Copy link

rafaelmb commented Sep 9, 2017

Hi @frimdo I've installed PHPCI again on my server three days ago and yesterday I have enabled the shell plugin. All I need to do was add the define at local_vars.php and the next build has shell available and working. The @vaanholtje comment points out that using daemon requires a restart but I use cron here. Can you check if this is fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants