(powered by iDA Mediafoundry)
This is a project that contains A Touch UI admin console to manage patches. Navigate to http://localhost:4502/jetpack/patch-system.html to see this tool in action.
The JetPack Patch System allows you to check-in groovy scripts / ACS On-Deploy Scripts in the code base, which can be deployed to AEM. AEM can run these patches using a system that will never run a patch that was executed before, unless modified.
A Touch UI overview screen provided insights in all patches and their execution state.
Install Carve as Model Manager: https://jetpack.ida-mediafoundry.io/libraries/carve.html (We have a dependency to 1.1.0, other versions might work as well, but is not tested)
Download and install ICF Olson Groovy Console: https://github.com/OlsonDigital/aem-groovy-console#installation (We have a dependency to 13.0.0, other versions might work as well, but is not tested)
Download and install ACS Commons: https://adobe-consulting-services.github.io/acs-aem-commons/ (We have a dependency to 4.3., other versions might word as well, but is not tested)
1 or both of these projects need to be installed to have working Patch System. Both installed also works, if you want to support both Groovy Patches and On Deploy Scripts.
Upload all patches to /apps/patches//.groovy
- /apps/patches is a sling:Folder
- project is a nt:folder, sling:Folder or sling:OrderedFolder. A jcr:title can be added for a more readable name.
- .groovy is a valid groovy script
It's also possible to nest & group multiple project folders.
Recommendation: per installed zip, upload to 1 folder.
Follow the instructions: https://adobe-consulting-services.github.io/acs-aem-commons/features/on-deploy-scripts/index.html
See https://github.com/ida-mediafoundry/jetpack-patch-system-samples
The System user is configured automatically.
The remote API could be used for CI purposes:
- Execute a POST call to http://localhost:4502/services/patches/trigger to trigger the patch system.
- Execute a GET call to http://localhost:4502/services/patches/check to check if the patch system is still running.
- Execute a GET call to http://localhost:4502/services/patches/list to get a list of patches to execute.
Don't forget to set the content-type on the request to 'application/json'.
The main parts of the template are:
- core: Java bundle containing all core functionality like OSGi services, Sling Models and WCMCommand.
- ui.apps: contains the /apps part containing the html, js, css and .content.xml files.
To build all the modules run in the project root directory the following command with Maven 3:
mvn clean install
If you have a running AEM instance you can build and package the whole project and deploy into AEM with
mvn clean install -PautoInstallPackage
Or to deploy it to a publish instance, run
mvn clean install -PautoInstallPackagePublish
Or alternatively
mvn clean install -PautoInstallPackage -Daem.port=4503
Or to deploy only the bundle to the author, run
mvn clean install -PautoInstallBundle
There are three levels of testing contained in the project:
unit test in core: this show-cases classic unit testing of the code contained in the bundle. To test, execute:
mvn clean test