Jenkins Kata 2: Build Steps

Learn about adding a build step and the associated result codes.

Jenkins jobs execute build steps. Build steps can be general-purpose scripts or custom steps designed for a specific purpose. This kata will show us how to configure the basic steps in a job.

Step 1: Add a build step

To execute a build step that writes the build number to a file.

  • Click “Configure.”
  • Click the “Build Steps” tab.
  • Click “Add build step.”
  • Click “Execute shell.”
  • Enter the following code into the “Command” field:

Get hands-on with 1200+ tech skills courses.