This visual execution shows how Jenkins pipeline uses the environment directive. The pipeline starts with no environment variables. Then it reads the environment directive and sets GREETING to 'Hello' and TARGET to 'World'. These variables are available in all stages and steps, as shown when the example stage prints 'Hello, World!'. After the pipeline finishes, the environment variables are cleared. This helps keep variables scoped to the pipeline run only. Beginners often wonder why variables disappear after the run or if variables are available everywhere. This trace clarifies those points by showing variable states and pipeline steps.