OPENJPA-1836 update nightly-upload profile to use key/passphrase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1022979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-10-15 15:55:08 +00:00
parent 8a5c16e57c
commit ada720a769
2 changed files with 10 additions and 8 deletions

View File

@ -399,6 +399,8 @@
<ant antfile="upload.xml" target="upload" inheritRefs="true"> <ant antfile="upload.xml" target="upload" inheritRefs="true">
<property name="nightly.user.name" value="${nightly.user.name}" /> <property name="nightly.user.name" value="${nightly.user.name}" />
<property name="nightly.password" value="${nightly.password}" /> <property name="nightly.password" value="${nightly.password}" />
<property name="nightly.keyfile" value="${nightly.keyfile}" />
<property name="nightly.passphrase" value="${nightly.passphrase}" />
<property name="nightly.version" value="${nightly.version}" /> <property name="nightly.version" value="${nightly.version}" />
<property name="project.version" value="${project.version}" /> <property name="project.version" value="${project.version}" />
</ant> </ant>

View File

@ -49,23 +49,23 @@
</fileset> </fileset>
</checksum> </checksum>
<scp todir="${nightly.user.name}:${nightly.password}@${host}:${build.dir}" trust="true"> <scp todir="${nightly.user.name}@${host}:${build.dir}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" trust="true" sftp="true">
<fileset dir="target/site/tempDocs"> <fileset dir="target/site/tempDocs">
<include name="docs.zip"/> <include name="docs.zip"/>
</fileset> </fileset>
</scp> </scp>
<!-- remove directories, hopefully this fails silently. mkdir does not and stops the process these exist.--> <!-- remove directories, hopefully this fails silently. mkdir does not and stops the process these exist.-->
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="rm -Rf ${build.dir}/apache-openjpa-${project.version}/docs" trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="rm -Rf ${build.dir}/apache-openjpa-${project.version}/docs" trust="true" />
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="rm -Rf ${build.dir}/apache-openjpa-${project.version}/downloads" trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="rm -Rf ${build.dir}/apache-openjpa-${project.version}/downloads" trust="true" />
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="unzip -qq -d ${build.dir}/ ${build.dir}/docs.zip" trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="unzip -qq -d ${build.dir}/ ${build.dir}/docs.zip" trust="true" />
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="rm ${build.dir}/docs.zip" trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="rm ${build.dir}/docs.zip" trust="true" />
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="mkdir ${build.dir}/apache-openjpa-${project.version}/downloads " trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="mkdir ${build.dir}/apache-openjpa-${project.version}/downloads " trust="true" />
<scp todir="${nightly.user.name}:${nightly.password}@${host}:${build.dir}/apache-openjpa-${project.version}/downloads" trust="true"> <scp todir="${nightly.user.name}@${host}:${build.dir}/apache-openjpa-${project.version}/downloads" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" trust="true">
<fileset dir="target/site/downloads" /> <fileset dir="target/site/downloads" />
</scp> </scp>
<sshexec host="${host}" username="${nightly.user.name}" password="${nightly.password}" command="chmod -R g+w ${build.dir}/apache-openjpa-${project.version}" trust="true" /> <sshexec host="${host}" username="${nightly.user.name}" keyfile="${nightly.keyfile}" passphrase="${nightly.passphrase}" command="chmod -R g+w ${build.dir}/apache-openjpa-${project.version}" trust="true" />
<delete> <delete>
<fileset dir="target/site/tempDocs" /> <fileset dir="target/site/tempDocs" />