There may be several problems preventing your access, but the usual advise 
is to put "tmp" in your ${WORKSPACE} ... that is the Hudson workspace ... 
so that way, it is "yours" to cleanup, etc., as you like. 

You do have to create the directory first before Java will use it, perhaps 
even as a separate build step (depending on how you do your build) ... 
mkdir -p ${WORKSPACE}/tmp

And then, everywhere that Java might be invoked, use 
-Djava.io.tmpdir=${WORKSPACE}/tmp ... that'd be for direct calls to Java, 
of course, but also Ant, Maven, and/or Eclipse itself, as they will 
eventually call Java. 

HTH





From:   Yue <[email protected]>
To:     [email protected], 
Cc:     Stephan Eberle <[email protected]>
Date:   09/16/2014 06:21 PM
Subject:        [cross-project-issues-dev] org.eclipse.equinox.p2 
Permission denied
Sent by:        [email protected]



Dear all,

I've created a new Mars build job (eatop-0.5-mars) for EATOP project on 
hudson server (https://hudson.eclipse.org/eatop/) recently, and I got the 
following errors (
https://hudson.eclipse.org/eatop/job/eatop-0.5-mars/lastBuild/console) 
while building:

!ENTRY org.eclipse.equinox.preferences 4 4 2014-09-12 19:10:46.197
!MESSAGE Exception saving preferences to: 
/tmp/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.
!STACK 0
java.io.FileNotFoundException: 
/tmp/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.bak
 
(Permission denied)

It appears that /tmp/p2(and it's children) is owned by a different hipp 
user and group(Modeling ECP), so when my job runs (as the EATOP user) it's 
unable to write in that directory. 
Does anyone know how to specify a different directory (e.g., 
/tmp/eatop/p2) that will probably get things rolling? Thanks for any help 
in advance,

Best regards,
-- 
Dr. Yue Ma
Senior Software Architect

Phone: +33 (0)9 83 25 77 12
Fax: +33 (0)9 83 56 77 12

Web: http://www.itemis.de
Mail: [email protected]
LinkedIn: http://fr.linkedin.com/in/yuema
_______________________________________________
cross-project-issues-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe 
from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
_______________________________________________
cross-project-issues-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev

Reply via email to