Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367464

Summary: Write access to/home/data/httpd/download.eclipse.org/tools/gef/ for gef4-nightly-tycho hudson job
Product: Community Reporter: Alexander Nyßen <nyssen>
Component: CI-JenkinsAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2011-12-22 17:58:36 EST
I would like to promote the GEF4 builds to a respective update site. However, it seems that my job does not have sufficient rights to access /home/data/httpd/download.eclipse.org/tools/gef/, if I interpret the following ant problem correctly: 

org.eclipse.gef4.repository: An Ant BuildException has occured: The following error occurred while executing this line:
/opt/users/hudsonbuild/workspace/gef4-nightly-tycho/build/org.eclipse.gef4.repository/promote.xml:6: The following error occurred while executing this line:
/opt/users/hudsonbuild/workspace/gef4-nightly-tycho/build/org.eclipse.gef4.repository/promote.xml:87: Failed to copy /opt/users/hudsonbuild/workspace/gef4-nightly-tycho/build/org.eclipse.gef4.repository/temp/update-site/features/org.eclipse.gef4.geometry.tests_0.1.0.201112222246.jar to /home/data/httpd/download.eclipse.org/tools/gef/gef4/updates/nightly/features/org.eclipse.gef4.geometry.tests_0.1.0.201112222246.jar due to failed to create the parent directory for /home/data/httpd/download.eclipse.org/tools/gef/gef4/updates/nightly/features/org.eclipse.gef4.geometry.tests_0.1.0.201112222246.jar
Comment 1 Eclipse Webmaster CLA 2011-12-23 10:45:41 EST
We don't 'encourage' allowing Hudson to write to your downloads area.  I understand that some projects have done this, by adding acls or changing the required file permissions.

I would suggest you use a shell script on build to copy the files where you need them.

-M.
Comment 2 Alexander Nyßen CLA 2011-12-23 11:42:46 EST
Ok, that's fine for release and milestone builds. What is the intended procedure for nightly builds then? Cron-job?
Comment 3 Eclipse Webmaster CLA 2011-12-23 13:12:19 EST
Sure, or by hand (whatever makes the most sense for your project).

-M.
Comment 4 Alexander Nyßen CLA 2011-12-23 17:43:43 EST
(In reply to comment #3)
> Sure, or by hand (whatever makes the most sense for your project).
> 
> -M.

Last question: It seems I have access to build.eclipse.org but not to hudson.eclipse.org (when I try to ssh hudson.eclipse.org from build.eclipse.org, the connection gets closed). So how do I access hudson.eclipse.org and where do I have to copy the artifacts to (to make them available on download.eclipse.org)? I noticed the /home/data/httpd/download.eclipse.org directory seems to exist on both machines (rsynced?)...
Comment 5 Eclipse Webmaster CLA 2011-12-27 11:21:07 EST
You have 2 options:

1) Use the 'latest build' urls on Hudson and wget to grab the archived files.
2) on build: /opt/public/jobs/your_job_name/workspace/buildx

I'd reccomend using #1 only because if we ever do permanently change the setup(ie: mount the jobs dir locally on hudson) the urls 'should' be more stable.

/home/data/httpd/download.eclipse.org is nfs mounted on both build and hudson(so you can consume other projects without a trip via http).

-M