使用 Jenkins 根据子文件夹名称将我的 SVN 存储库的子文件夹部署到 2 个不同的 MarkLogic 数据库中
Deploy sub-folders of my SVN repository into 2 different MarkLogic DB based on the sub-folder name using Jenkins
我有一个 XQuery 存储库,其中有两个子文件夹(folder1 和 folder2)。我希望将 folder1 部署到我的 MarkLogic 服务器中的 Modules 数据库,将 folder2 部署到 second-modules 数据库。
如何使用 Jenkins 实现这一目标?
您可以使用 Jenkins HTTP Request Plugins to import the modules. This will allow you to use the MarkLogic REST API 将模块导入您想要的任何数据库。
对于CI/CD,MarkLogic 还提供了ml-gradle plugin, as well as the Packaging API。 Packaging API 可以通过 HTTP 请求插件使用。 ml-gradle 可以通过 Jenkins Gradle 插件使用:
- https://wiki.jenkins.io/display/JENKINS/Gradle+Plugin
- https://guides.gradle.org/executing-gradle-builds-on-jenkins/
这里是 How to call REST from Jenkins
上的相关 Whosebug 问题
我有一个 XQuery 存储库,其中有两个子文件夹(folder1 和 folder2)。我希望将 folder1 部署到我的 MarkLogic 服务器中的 Modules 数据库,将 folder2 部署到 second-modules 数据库。 如何使用 Jenkins 实现这一目标?
您可以使用 Jenkins HTTP Request Plugins to import the modules. This will allow you to use the MarkLogic REST API 将模块导入您想要的任何数据库。
对于CI/CD,MarkLogic 还提供了ml-gradle plugin, as well as the Packaging API。 Packaging API 可以通过 HTTP 请求插件使用。 ml-gradle 可以通过 Jenkins Gradle 插件使用:
- https://wiki.jenkins.io/display/JENKINS/Gradle+Plugin
- https://guides.gradle.org/executing-gradle-builds-on-jenkins/
这里是 How to call REST from Jenkins
上的相关 Whosebug 问题