Skip to content
CodeKruPro

Read the Jenkins log: what happened to the deploy?

QuizEasy-MediumAsked in: Capgemini, Google, Salesforce, TCS, Zupee

Read the log.

console.log

[Pipeline] { (Test)
[Pipeline] sh
+ mvn -B test
...
[ERROR] Tests run: 85, Failures: 4, Errors: 0, Skipped: 0
[INFO] BUILD FAILURE
[Pipeline] { (Deploy to staging)
Stage "Deploy to staging" skipped due to earlier failure(s)
[Pipeline] { (Declarative: Post Actions)
[Pipeline] junit
Recording test results
ERROR: script returned exit code 1
Finished: FAILURE

Which statements are true? Choose all that apply.

  • mvn exited with code 1 because 4 tests failed, which failed the Test stage
  • The deploy stage was skipped because an earlier stage failed
  • Test results were still recorded, because junit runs in the post section
  • The code was deployed to staging with failing tests

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in