Job Succeeds but Build Script Fails

I’m new to Gitlab CI.
I have one Windows 2012 R2 runner and an up to date Centos Gitlab server.

I have gitlab-ci.yml kicking off a build script that is running psake (powershell).
My question is, when i run a job, even if the build script throws an error, the job says the build succeeds.

Am I missing something or doing something wrong?
Thanks for your help.

Here is an example of what I am talking about:

Running with gitlab-ci-multi-runner 9.2.0 (acec387)
on Windows Runner (a0ed4134)
Using Shell executor…
Running on SERVERX…
Fetching changes…
HEAD is now at e26a7e4 project updates
Checking out e26a7e4a as master…
Skipping Git submodules setup
$ .\Build\Build.ps1 -Task Deploy

Executing Deploy
Error: 5/31/2017 12:10:12 AM:
At D:\Gitlab-Runner\builds\a0ed4134\0\user\module\Build\psakeBuild.ps1:40 char:5

  • Update-Metadata -Path $ENV:BHPSModuleManifest
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Method invocation failed because [System.Management.Automation.Language.PipelineAst] does not contain a method named 'SafeGetValue'.

Job succeeded

Shouldn’t the job fail if the build script has an error?