Skip to content

Jenkins Templating Engine: Pipeline Primitives

This lab covers each of the JTE Pipeline Primitives and describes their usage.

What Are Primitives

When writing reusable Pipeline Templates through the Jenkins Templating Engine, one of the primary goals is to keep the template as easy-to-read as humanly possible.

JTE Pipeline Primitives are defined in your Pipeline Configuration file and primarily serve to aid in this endeavor by providing "syntactic sugar" during the runtime execution of the template. "Sugar" in that it has no functional benefit but makes the code easier to read, and therefore maintain.

Throughout this lab, we will cover each of the JTE Pipeline Primitives and describe when to use them and how they make writing templates even easier.

Important

Pipeline Primitives are defined in the aggregated Pipeline Configuration and make writing and reading Pipeline Templates easier.

What You'll Learn

  • The Application Environment Primitive
  • The Stage Primitive
  • The Keyword Primitive
Back to top