I have an XQuery repository and I have two child folders inside it (folder1 and folder2). I want folder1 to be deployed to Modules DB in my MarkLogic server and folder2 to be deployed to second-modules DB. How to achieve this using Jenkins?
Asked
Active
Viewed 29 times
1 Answers
1
You can use the Jenkins HTTP Request Plugins to import the modules. This will allow you to use the MarkLogic REST API to import the modules to whichever database you want.
For CI/CD MarkLogic also offers the ml-gradle plugin, as well as the Packaging API. The Packaging API can be used via the HTTP Request Plugin. ml-gradle can be used via the Jenkins Gradle plugin:
- https://wiki.jenkins.io/display/JENKINS/Gradle+Plugin
- https://guides.gradle.org/executing-gradle-builds-on-jenkins/
And here is a related Stackoverflow question on How to call REST from Jenkins

Mike Gardner
- 6,611
- 5
- 24
- 34