1

We are trying to deploy an unmanaged package we are developing within a Developer org to a separate sandbox using the ANT Migration Tool. Im using the following to retrieve the package...

<target name="retrievePkg">
  <mkdir dir="retrieveUnpackaged"/>
  <sf:retrieve username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" retrieveTarget="retrieveUnpackaged" packageNames="mypackagename"/>
</target> 

...and to deploy...

<target name="deployCode">
  <sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="retrieveUnpackaged" rollbackOnError="true" testLevel="NoTestRun" singlePackage="true">
  </sf:deploy>
</target>

This deploys the code/components to the destination org but not under the 'mypackagename' package we've retrieved from the source org.

How do we deploy code/components as a package to the destination org?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.