我正在为 jenkins 使用 publish confluence 插件。使用此插件可以将工件和其他文件上传到汇合页面(所需页面)。但是我想创建一个文件夹结构以便我可以管理我的东西。我想要这样的结构
APP
|
|
|----Regression build
|
|
|----Sprint Build
当我试图实现这一点时,每次这个插件都会创建一个新页面,例如 Regression Build 作为新页面,Sprint Build 作为新页面,目录结构与 APP 不在其下。
我的页面链接是这种格式
https://xxx.xxx.com/confluence/display/CA/APP .
因此,如果我尝试在 APP 下创建回归构建,它会在与 APP 相同的目录结构中创建此新页面,而不是在 APP 作为子文件夹下。
问候
最佳答案
您需要定义parentId。更多信息在这里 confluence-publisher
def parentId = 123456;
stage('Confluence')
{
try
{
publishConfluence siteName: 'siteName', pageName: pageName, spaceName: 'spaceKey',
attachArchivedArtifacts: true,
parentId: parentId,
editorList: [
confluenceAppendPage(generator: confluenceText('TEST')),
]
}
catch(e)
{
echo e.getMessage()
}
关于jenkins-plugins - 如何在 Jenkins 汇合的页面下创建页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29238327/