Inject environment variables into Multibranch pipeline

15 views
Skip to first unread message

tzach solomon

unread,
Oct 2, 2020, 9:27:06 AM10/2/20
to jenkin...@googlegroups.com
Hi All,

I'm trying to solve JENKINS-52577 - CHANGE_ variables are missing and I was wondering what is the correct approach to inject the the bitbucket payload (which is a string) into the environment variables (later to be used by the jenkinsfile multibranch pipeline).
I've seen example for EnvironmentContributingAction but I was wondering if it is the correct approach.

Thanks in advance,
Tzach

Jesse Glick

unread,
Oct 2, 2020, 10:18:06 AM10/2/20
to Jenkins Dev
On Fri, Oct 2, 2020 at 9:27 AM tzach solomon <tzach....@gmail.com> wrote:
> I'm trying to solve JENKINS-52577

Responded in Jira.

tzach solomon

unread,
Oct 2, 2020, 10:26:46 AM10/2/20
to jenkin...@googlegroups.com
Thanks Jesse for the quick response :)

Just for my curiosity, what is the proper way to inject environment variables into a pipeline?

- Tzach



--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2SkDcOO1J2N%3D4ZH9b6Mm1Ofi7UOTak8HkcfeQjC%3DTggQ%40mail.gmail.com.

Jesse Glick

unread,
Oct 2, 2020, 11:19:47 AM10/2/20
to Jenkins Dev
On Fri, Oct 2, 2020 at 10:26 AM tzach solomon <tzach....@gmail.com> wrote:
> Just for my curiosity, what is the proper way to inject environment variables into a pipeline?

Depends on which variables and why you are injecting them and when.

tzach solomon

unread,
Oct 2, 2020, 1:42:53 PM10/2/20
to jenkin...@googlegroups.com
:)

Cool, thanks :)

- Tzach

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages