then do try..catch around just getEnvironment
and later do .get, outside of

On 15/01/2014, Maikel Wever <notifications@github.com> wrote:
>> @@ -58,7 +59,12 @@ public boolean perform(AbstractBuild build, Launcher
>> launcher, BuildListener lis
>>          l.println("----------- Now sending build status to FogBugz
>> ----------");
>>
>> l.println("----------------------------------------------------------");
>>
>> -        String givenCaseId = (String) build.getEnvVars().get("CASE_ID");
>> +        String givenCaseId = null;
>> +        try {
>> +            givenCaseId = (String)
>> build.getEnvironment(listener).get("CASE_ID");
>> +        } catch (Exception e) {
>> +            log.log(Level.SEVERE, "Exception while fetching environment
>> variables.", e);
>
> Unfortunately that does not seem to work because the
> build.getEnvironment(listener) parts raises the exception.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/paylogic/fogbugz-plugin/pull/4/files#r8894806


-- 
Anatoly Bubenkov