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
Solved! Go to Solution.
Views
Replies
Total Likes
@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>
@srinivas_chann1 we can archive this through Jenkins pipeline or using Curl commands to upload/install the packages in Shell script.
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
@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>
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
Views
Likes
Replies