Yes, using the keyfile attribute of the scp task, hudsonBuild could, in
theory, use my key to push a file into download.eclipse.org...
https://build.eclipse.org/hudson/job/cbi-admin/8/console
However:
com.jcraft.jsch.JSchException: java.io.FileNotFoundException:
/home/data/users/nickb/.ssh/id_rsa (Permission denied)
But it works locally thus:
$ /shared/common/apache-ant-1.7.1/bin/ant -file testscp.xml main -lib
/home/data/users/nickb/.ant/lib
Buildfile: testscp.xml
main:
[scp] Connecting to build.eclipse.org:22
[scp] done.
BUILD SUCCESSFUL
Total time: 3 seconds
So the next problem is simply where to put my private key so that Hudson
can see it, but others cannot.
Denis, where might such a location be?
On 02/01/2010 07:06 PM, David Carver wrote:
Here is another idea. Since Ant 1.6, ant comes with an SCP task.
http://ant.apache.org/manual/OptionalTasks/scp.html
There is also an FTP task.
http://ant.apache.org/manual/OptionalTasks/ftp.html
So using either one of these, the promotion.xml file could be scheduled
as a Build step, to FTP or SCP the necessary files over. The user would
have control over this and hudson just runs the job on
build.eclipse.org. Denis would still get his logs saying who wrote what
and where, and users would be restricted to there directories that they
have access rights too.
It involves no Cron job, and would work with Slave instances, and on
Linux and Windows as well.
Dave
_______________________________________________
dash-dev mailing list
dash-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/dash-dev
--
Nick Boldt :: http://nick.divbyzero.com
Release Engineer :: Eclipse Modeling & Dash Athena
_______________________________________________
dash-dev mailing list
dash-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/dash-dev