# Sonar addon doesn't set environment variables

**URL:** <https://travis-ci.community/t/sonar-addon-doesnt-set-environment-variables/3654>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [June 7, 2019, 4:46pm UTC](https://travis-ci.community/t/sonar-addon-doesnt-set-environment-variables/3654 "2019-06-07T16:46:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChocPanda](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/chocpanda/32/1939_2.png) [@ChocPanda](https://travis-ci.community/u/ChocPanda)\
**Post date:** [June 7, 2019, 4:46pm UTC](https://travis-ci.community/t/sonar-addon-doesnt-set-environment-variables/3654/1 "2019-06-07T16:46:27Z")

</div>

I’m not sure how or why this has occured however [this build](https://travis-ci.org/ChocPanda/argonaut-magnolia/jobs/542527087) appears to fail because having updated my sonar plugin, it’s failing to find SONAR\_SCANNER\_HOME environment variable which should be exported as an environment variable by the sonar plugin I have configured.

I would have blamed my sbt plugin however I was able to fix the build [here](https://travis-ci.org/ChocPanda/argonaut-magnolia/builds/542832431/config) by manually defining the SONAR\_SCANNER\_HOME environment variable
