Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to set environment variables in Jenkins?

jessica210jessica210 USMember

I would like to be able to do something like:

AOEU=$(echo aoeu)
and have Jenkins set AOEU=aoeu.

The Environment Variables section in Jenkins doesn't do that, instead, it sets AOEU='$(echo aoeu)'. How can I get Jenkins to evaluate a shell command and assign the output to an environment variable.

Eventually, I want to be able to assign the executor of a job to an environment variable that can be passed into or used by other scripts.

Sign In or Register to comment.