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 8418553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:22:04+00:00 2026-06-10T02:22:04+00:00

So I have a version.txt file in my Source Control. I check it out

  • 0

So I have a version.txt file in my Source Control. I check it out on master and build, and have the Set Environment Variables through a file with the File Path being
$WORKSPACE/Version.txt

On the master it correctly finds the Version.txt and sets MAJOR=x etc..

When I do the same build on a slave node, with the same configuration I always get a

[envfile] Reading environment variables from file.
[envfile] Path to file: /var/hudson/workspace/DEV_BUILD/Version.txt
[envfile] Can not find environment file. Path to file=[/var/hudson/workspace/DEV_BUILD/Version.txt]

but I see earlier that:

Building remotely on cent5.5_64
Cleaning the workspace because project is configured to clean the workspace before each build.
server: 192.168.1.207
[UGCS_DEV_BUILD] $ sscm get / -wreplace  -d/var/hudson/workspace/DEV_BUILD -r

get from main/DEV:

/var/hudson/workspace/DEV_BUILD/Version.txt

I am guessing $WORKSPACE refers to the master? Anyone have any ideas how to get this to work on a Slave?

  • 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-10T02:22:05+00:00Added an answer on June 10, 2026 at 2:22 am

    It seems that the EnvFile plugin isn’t working with slaves :
    https://issues.jenkins-ci.org/browse/JENKINS-9546

    Moreover from the comments in this JIRA, they suggest to use the EnvInject plugin : https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin

    Regards,

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

Sidebar

Related Questions

Good day! Let us have a source file main.cpp and a CMakeLists.txt file containing
I have a tricky problem: there is a file (version.txt) that contains two lines
I have a version number in my AssemblyInfo.cs file like so: [assembly: AssemblyInformationalVersion(0.0.0.2)] Normally
I have a very simple directory structure: Project Project/src Project/build Source files are in
I am trying to build sipdroid under eclipse,I have downloaded the source from the
I'm setting up CruiseControl.NET and during the build I want to modify my version.txt
I have a txt file that has many rows of lines I want to
I have a professor that doesn't understand source control very well. He asked us
I have a txt file like this $CHUNK_QTY = 50000; $CLIENT = hi all;
Basic powershell question here - I have two computers in the c:\temp\servers.txt file and

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.