S

Satya • 3.38K Points
Extraordinary

Q. What is the use of the 'environment' block in a Jenkins pipeline?

  • (A) To define shell commands
  • (B) To set environment variables
  • (C) To declare Git branches
  • (D) To specify build agents
  • Correct Answer - Option(B)
  • Views: 46
  • Filed under category Jenkins
  • Hashtags:

Explanation by: Satya

The 'environment' block is used to define environment variables for the pipeline.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.