dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Shell plugin config #1309

Open frimdo opened 7 years ago

frimdo commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

vaanholtje commented 7 years ago

Restart of the worker was the solution!

rafaelmb commented 6 years ago

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?