Ant task that automates the installation of managed packages

PS Summer ’13 looks like it adds meta data support for managed packages so check that out first…

At ClaimVantage we deploy using a mixture of managed packages and source code. The development process for a customer can involve up to this many orgs:

  • one (or more) developer edition orgs that developers create the custom code in
  • a build org that the Jenkins continuous integration server uses to verify that the code committed to the version control system is deployable including 100% passing tests
  • a QA sandbox org that the customer’s QA team test in
  • a UAT sandbox org that the customer’s business users test in
  • the customer’s production org

And as we typically work in 2 week long iterations, over a few months of work for a customer many deployments get done to each of these orgs.

The source code can be pushed into orgs using the Ant tools provided by Salesforce. While it is not quick – typically it takes a few minutes – it requires no attention once started so you can get on with other work and check the outcome later.

But managed package installation unfortunately involves a multiple-page wizard with slow transitions between the pages even before the final asynchronous step. And Salesforce have not provided an API or any other tooling to allow this tedious button clicking to be eliminated.

So I am very grateful that my colleague Sinead Coyle has created an Ant task that automates the clicking via Selenium. She is now sharing this in the Google code project force-managed-package-installer. It allows the managed package installation or upgrade to be just another step in the Ant script ahead of the source code deployment.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s