How To Pass Variables Between Stages in Jenkins

preview_player
Показать описание
Need help with your Jenkins questions?

Timecodes ⏱:

00:00 Introduction
00:06 Overview
00:34 Starting point
00:48 Review scripted pipeline example
01:40 Review declarative pipeline example

#jenkinstutorial

Information referenced in this video:

Gist

Jenkins LTS 2.332.3

CloudBees on Twitter:

Darin on Twitter:
Рекомендации по теме
Комментарии
Автор

Simple and easy way to Learn Jenkins... Thanks for sharing 😊

rakeshjha
Автор

Thanks, I was looking for this exact thing.

ArchitBohra
Автор

we can use env.variable as well. Using this we can define a variable anywhere in pipeline and use them in upcoming stages

donvj
Автор

What I did was I declared a variable def animal = my script' and assigned it to a global environment variable so that I can use in other stages.
env.ANIMAL = animal

tinnu.universe
Автор

Is it possible to do this using Shared Libraries?

fabiano.nascimento