Skip to content

Wrong environment does not fail the Jenkins build #1266

@mobilutz

Description

@mobilutz

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:

  1. Go to mro-pipeline-master on jenkins
  2. Start build with e.g. test
  3. Wait for release to end
  4. See that Jenkins build is green, but release was not done

Expected behavior
Jenkins build fails

Screenshots
Image
Image
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions