Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subpagesForSections = 0 not working #1373

Open
tafli opened this issue Feb 28, 2024 · 0 comments
Open

subpagesForSections = 0 not working #1373

tafli opened this issue Feb 28, 2024 · 0 comments

Comments

@tafli
Copy link

tafli commented Feb 28, 2024

As soon as I set the confluence option subpagesForSections to 0, the publishToConfluence-Task fails with following error

> Task :publishToConfluence FAILED
* Where:
Script '/home/dtcuser/docToolchain/scripts/publishToConfluence.gradle' line: 69

* What went wrong:
Execution failed for task ':publishToConfluence'.
> something went wrong - request failed (
  response: 400 , 
  reason: <none>, 
  possible solution: please check the your config file or passed parameters)

However, as soon as I set the value to 1 it works flawlessly.

Using DTC Version 3.2.2.
We are not using the cloud version of confluence.

Any hints on that?

The whole confluence configuration looks as following (comments stripped):

confluence.with {
    input = [
            [ file: "build/html5/main.html",  ancestorId: '1234567890' ],
    ]

    api = 'https://<path/to/confluence>/rest/api/'

    spaceKey = '<spaceKey>'
    subpagesForSections = 0 // <-- Doesn't work
    // subpagesForSections = 1 // <-- Does work

    pagePrefix = ''
    pageSuffix = ''

    pageVersionComment = ''
    extraPageContent = '<ac:structured-macro ac:name="info"><ac:parameter ac:name="title" /><ac:rich-text-body> Inhalt ist generiert, bitte nicht direkt editieren.</ac:rich-text-body></ac:structured-macro>'

    enableAttachments = false

    pageLimit = 100

    export = [
            srcDir: 'sample_data',
            destDir: 'src/docs'
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant