user2274204
user2274204

Reputation: 345

Pass parameters from Jenkins to C#

i have c# nunit testing project, i need to send parameters from the job to the C# test suite.

what i did in my testing code:

  string value=  Environment.GetEnvironmentVariable("Name");

in the Jenkins side:

enter image description here

and didn't success to get the value.

any help ?

Thanks

Upvotes: 1

Views: 1768

Answers (1)

SSP
SSP

Reputation: 103

You can select 'This project is parameterized' checkbox and add required parameter from list.

Upvotes: 1

Related Questions