【问题标题】:How to create Page under a page in confluence from jenkins如何在詹金斯汇合的页面下创建页面
【发布时间】:2015-05-28 02:24:36
【问题描述】:

我正在为 jenkins 使用发布融合插件。有了这个插件,工件和其他文件可以上传到汇合页面(所需页面)。但我想创建一个文件夹结构,以便我可以管理我的东西。我想要这样的结构

APP
|
|
|----Regression build
|
|
|----Sprint Build

当我试图实现这一点时,每次这个插件都会创建一个新页面,例如 Regression Build as new page 和 Sprint Build as new page in the same directory structure as APP not under it.

我的页面链接是这种格式

https://xxx.xxx.com/confluence/display/CA/APP.

所以如果我试图在 APP 下创建回归构建,它会在 APP 的同一目录结构中创建这个新页面,而不是在 APP 下作为子文件夹。

问候

【问题讨论】:

  • 这里有同样的问题.. :(
  • @MichaelWarkentin 抱歉从那以后没有尝试过。虽然我已经尝试过 confluence page api,但我相信这个特定的场景没有解决。

标签: jenkins-plugins confluence


【解决方案1】:

您需要定义 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()
  }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-26
    • 1970-01-01
    • 1970-01-01
    • 2018-11-16
    相关资源
    最近更新 更多