Just added all my code to bitbucket and was setting up a test to check the config and verify it and then was hopefully going to somehow automatically pull and reboot hass on my pi if the test was successful.
The problem I’m running into is that pipelines ‘builds’ everything ok, except this line hass -c . --script check_config
.
That line executes but even if the output contains config errors, the build still passes.
This was my most recent (purposefully trying to fail to make sure it works) test result
> + hass -c . --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog>2.1,<3 Testing configuration at /opt/atlassian/pipelines/agent/build/. 2017-05-13 12:24:31 ERROR (Thread-1) [homeassistant.util.yaml] while parsing a block mapping in "/opt/atlassian/pipelines/agent/build/./sensor.yaml", line 1, column 5 expected <block end>, but found '<block sequence start>' in "/opt/atlassian/pipelines/agent/build/./sensor.yaml", line 8, column 6 2017-05-13 12:24:31 ERROR (MainThread) [homeassistant.bootstrap] Error loading ././configuration.yaml: while parsing a block mapping in "/opt/atlassian/pipelines/agent/build/./sensor.yaml", line 1, column 5 expected <block end>, but found '<block sequence start>' in "/opt/atlassian/pipelines/agent/build/./sensor.yaml", line 8, column 6
But the pipelines result was still success. Does anyone know of a way to trigger a build failure if any of the output contains the word Error
or something? Also any links of ideas on how to set up my pi to auto pull and reboot if the build was successfull ?