Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to push package through automated process from one aem instance to another aem instance

Avatar

Level 7

Hi,

 

We do a content sync from prod env to lower env  regularly to keep the content in sync for testing purpose.

 

So we would want to automate the process.

1>create a package with delta content for certain time period

 

2>push the above created  package from prod env to lower env based on hostname or ip

 

 

Could some one provide inputs as how we do the above

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@srinivas_chann1 You can try this:

Upload and Install a package from File system using AEM cURL command :
curl -u admin:admin -F file=@"C:\sample\samplepackage.zip" -F name="samplepackage" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp


Download a package into local filesystem using AEM cURL command:
curl -u admin:admin http://localhost:4502/etc/packages/my_packages/samplepackage.zip > <local filepath>

View solution in original post

0 Replies

Avatar

Community Advisor

@srinivas_chann1 we can archive this through Jenkins pipeline or using Curl commands to upload/install the packages in Shell script.

Avatar

Level 7

Hi,

 

Thanks for the reply

What could be the curl commands which I could add to jenkins for say a package name content_sync.zip

Avatar

Correct answer by
Community Advisor

@srinivas_chann1 You can try this:

Upload and Install a package from File system using AEM cURL command :
curl -u admin:admin -F file=@"C:\sample\samplepackage.zip" -F name="samplepackage" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp


Download a package into local filesystem using AEM cURL command:
curl -u admin:admin http://localhost:4502/etc/packages/my_packages/samplepackage.zip > <local filepath>

Avatar

Level 6

Hi @srinivas_chann1 

 

Kindly have a look at this blog which helps you to understand your requirement & achieve it with curl commands.

https://blogs.perficient.com/2019/04/08/deploy-aem-packages-with-jenkins-like-a-boss-2/

 

Regards,

Santosh