Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8137347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:05:16+00:00 2026-06-06T11:05:16+00:00

For some reason I have to access Jenkins global environment variables like BUILD ID,

  • 0
  1. For some reason I have to access Jenkins global environment variables like BUILD ID, etc. in my MSBuild file but I don’t know how to do that.

  2. After running my NUnit project I create a specific report, a pdf file, but there may be times when this file does not get generated(like when there is no data to show) so I have to check whether this report exists or not and if yes, then I have to attach it in a mail and send to some guys. I am using Email-ext plugin of Jenkins but I am not sure how to check for this condition.

What do you suggest I do for these problems?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:05:19+00:00Added an answer on June 6, 2026 at 11:05 am
    1. Don’t know how Jenkins works, but there should be some way to pass additional command line parameters. To pass Jenkins global variable add /p: switch into the MSBuild command line. Let’s say JenkinsVersion is global variable in Jenkins. You can pass it into the MSBuild with /p:MsBuildJenkinsVariable=JenkinsVersion . MsBuild $(MsBuildJenkinsVariable) property now should be filled with JenkinsVersion.

    2. I know you want to set condition in Jenkins somehow. If it is not possible to do it in Jenkins, you can do it using MSbuild script. I’m using MSBuild.ExtensionPack.Communication.Email MSBuild task to send notification e-mails. Set Condition property of the Email task to send e-mail when report file doesn’t exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use prototype since a long time, but for some reason I have to
I have a following program but for some reason it is throwing an error
I have derived a class BitmapDrawable in android for some reason but I want
Let's say in an environment I don't have easy access to trig functions, or
For some reason, I can't access any of my variables after the first IF
i have a view in MySQL but for some reason i want it to
I have a site at xyz.com, for some reasons I want to redirect access
For some reason I have always assumed that most of the time a variable
For some reason I have a very ugly orange part of a border around
For some reason I have a black underlay under my round rect buttons. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.