$WORKSPACE Changing

14 views
Skip to first unread message

Eric Fetzer

unread,
Oct 3, 2016, 9:43:59 AM10/3/16
to Jenkins Users
Not sure what's going on.  My workspace seems to be changing mid-build.  At the beginning of the build I see:

Building in workspace /var/lib/jenkins/workspace/MyApp

Then I check out to the same location and everything is cool so far.  Next my ant task runs which looks like this:

$WORKSPACE/MyProject/BuildMyApp.xml

But then I see it kick off a build using a different location (and it's an old version):

Buildfile: /opt/jenkins/workspace/MyApp/MyProject/BuildNAPReports.xml

Does anyone know what is going on or how I would trouble shoot this?  It seems like the ant task is ignoring the $WORKSPACE and building wherever he wants to build...  Could this be a bug that comes from migrating from an old version of Jenkins?

Thanks,
Eric

Eric Fetzer

unread,
Oct 3, 2016, 10:51:53 AM10/3/16
to Jenkins Users
OK, figured it out.  /var/lib/jenkins is a symbolic link to /opt/jenkins, so nm, this is fine...  The builds just choose to tell it one way in one place and another way in another place.
Reply all
Reply to author
Forward
0 new messages