How to push package through automated process from one aem instance to another aem instance | Adobe Higher Education
Skip to main content
srinivas_chann1
Level 7
December 14, 2021
解決済み

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

  • December 14, 2021
  • 2 の返信
  • 1815 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー SantoshSai

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

2 の返信

Raja-Karuppsamy
Community Advisor
Community Advisor
December 14, 2021

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

srinivas_chann1
Level 7
December 14, 2021

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

Raja-Karuppsamy
Community Advisor
Community Advisor
December 15, 2021

@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>

SantoshSai
Community Advisor
Community Advisor
December 14, 2021

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

Santosh Sai