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
Beantwortet

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

  • December 14, 2021
  • 2 Antworten
  • 1815 Ansichten

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

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antworten

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
SantoshSaiCommunity AdvisorAntwort
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