Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32446

wikitext markup inserts a default title that can't be changed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • plugin version 1.3

      When using WikiText markup the header is always 'Page Title', regardless of whether you include a first level header

          [JENKINS-32446] wikitext markup inserts a default title that can't be changed

          Daniel Han added a comment -

          I have the same problem and cannot figure out how to work around it.

          Daniel Han added a comment - I have the same problem and cannot figure out how to work around it.

          Andreas Katzig added a comment - - edited

          Same here, please let's fix that for WikiText.

          (The workaround for now is to use Confluence formatting: https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html)

          Andreas Katzig added a comment - - edited Same here, please let's fix that for WikiText. (The workaround for now is to use Confluence formatting:  https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html )

          Daniel Han added a comment -

          derfunk: Can you provide an example of how to change the title using the confluence formatting?

          Daniel Han added a comment - derfunk : Can you provide an example of how to change the title using the confluence formatting?

          Andreas Katzig added a comment - - edited

          With Confluence formatting, the "PageTitle" header doesn't appear at all.

          Just define your own title like this:

          h1. My Page Title

          Andreas Katzig added a comment - - edited With Confluence formatting, the "PageTitle" header doesn't appear at all. Just define your own title like this: h1. My Page Title

          Daniel Han added a comment -

          derfunk I tried the following code:

          String versionInfo = '''h1. VERSIONS
           \'\'\'APP_VERSION\'\'\' = ${ENV:APP_VERSION}
           \'\'\'LIB_VERSION\'\'\' = ${ENV:LIB_VERSION}
           '''
           job.with {
           publishers {
           richTextPublisher {
           stableText(versionInfo)
           unstableText(versionInfo)
           failedText(versionInfo)
           abortedText(versionInfo)
           unstableAsStable(true)
           failedAsStable(true)
           abortedAsStable(true)
           parserName('WikiText')
           nullAction('Ignore')
           }
           }
           }

          in our jobdsl. However the title is still not showing up properly.

          Daniel Han added a comment - derfunk I tried the following code: String versionInfo = '''h1. VERSIONS \ '\' \ 'APP_VERSION\' \ '\' = ${ENV:APP_VERSION} \ '\' \ 'LIB_VERSION\' \ '\' = ${ENV:LIB_VERSION} ''' job.with { publishers { richTextPublisher { stableText(versionInfo) unstableText(versionInfo) failedText(versionInfo) abortedText(versionInfo) unstableAsStable( true ) failedAsStable( true ) abortedAsStable( true ) parserName( 'WikiText' ) nullAction( 'Ignore' ) } } } in our jobdsl. However the title is still not showing up properly.

          Daniel Han added a comment - - edited

          Sorry, I think I figured it out. The only change needed is:

           - parserName('WikiText')
           + parserName('Confluence')
          

          Daniel Han added a comment - - edited Sorry, I think I figured it out. The only change needed is:  - parserName( 'WikiText' ) + parserName( 'Confluence' )

            Unassigned Unassigned
            ianawp Ian Patullo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: