Describe the bug
When a different environment to 'DEV', 'QA' or 'PROD' is used, it does not fail the Jenkins build but it is green at the end
To Reproduce
Steps to reproduce the behavior:
- Go to
mro-pipeline-master on jenkins
- Start build with e.g.
test
- Wait for release to end
- See that Jenkins build is green, but release was not done
Expected behavior
Jenkins build fails
Screenshots



Affected version (please complete the following information):
> git fetch --no-tags --force --progress -- https://HOSTNAME/ods-jenkins-shared-library.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 671a52f526afbce37dc91fcc631a68e89d9d9b1f (4.x)
Log Output (ensure to remove any confidential information like tokens, project names, etc.
...
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
[Pipeline] echo
DEBUG: [pipeline-git-releasemanager] (took 24832 ms)
[Pipeline] echo
ERROR: Exception catched in the pipeline execution: Error: 'environment' build param must be one of 'DEV', 'QA' or 'PROD'.
[Pipeline] echo
ERROR: Error during upload of test report : No such property: context for class: odsOrchestrationPipeline
[Pipeline] echo
ERROR: Error during upload of Jenkins log: No such property: context for class: odsOrchestrationPipeline
[Pipeline] }
[Pipeline] // node
[Pipeline] echo
DEBUG: Stopwatch size: 3
[Pipeline] echo
DEBUG: Stopwatch size: 0
[Pipeline] echo
DEBUG: -- Clean classloader --
[Pipeline] echo
DEBUG: org.jenkinsci.plugins.workflow.cps.CpsGroovyShell$CleanGroovyClassLoader@14715d7c - parent org.jenkinsci.plugins.workflow.cps.CpsGroovyShell$TimingLoader@15947674
[Pipeline] echo
DEBUG: Currently loaded classes 305
[Pipeline] echo
DEBUG: Rename classloader name to this run ...
[Pipeline] echo
DEBUG: cleanupHeap err: java.lang.NoSuchFieldException: modifiers
[Pipeline] End of Pipeline
Finished: SUCCESS
Describe the bug
When a different environment to 'DEV', 'QA' or 'PROD' is used, it does not fail the Jenkins build but it is green at the end
To Reproduce
Steps to reproduce the behavior:
mro-pipeline-masteron jenkinstestExpected behavior
Jenkins build fails
Screenshots



Affected version (please complete the following information):
Log Output (ensure to remove any confidential information like tokens, project names, etc.