PHPCI icon indicating copy to clipboard operation
PHPCI copied to clipboard

crontab mail sent even for 0 build candidates

Open MattMuffin opened this issue 9 years ago • 0 comments

Hello,

Here is the content of my crontab:

  • * * * * /usr/bin/php /opt/phpci/console phpci:run-builds

Here is the result message from running the script manually: /opt/phpci/console phpci:run-builds [2015-12-06 07:54:10] RunCommand.INFO: Découverte des builds à traiter [] [] [2015-12-06 07:54:10] RunCommand.INFO: 0 builds trouvés [] [] [2015-12-06 07:54:10] RunCommand.INFO: Traitement des builds terminé. [] []

I keep receiving emails saying this:

[2015-12-06 07:57:01] RunCommand.INFO: Découverte des builds à traiter [] [] [2015-12-06 07:57:01] RunCommand.INFO: 0 builds trouvés [] [] [2015-12-06 07:57:01] RunCommand.INFO: Traitement des builds terminé. [] []

Wouldn't it make more sense NOT to send this type of message if NO builds are found?

MattMuffin avatar Dec 06 '15 07:12 MattMuffin