shared_lib.txt file containing makrdown or HTML syntax of a global shared lib is not rendered

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

shared_lib.txt file containing makrdown or HTML syntax of a global shared lib is not rendered

Charles Moulliard
Hi,

A shared_lib.txt file containing markdown or HTML syntax of a global shared lib is not rendered  when I click on the sidecar link - http://localhost:8080/job/<shared-mytools>/pipeline-syntax/globals

Test file : https://github.com/ch007m/jenkins-shared-lib/blob/main/vars/buildJavaApp.txt
See image rendered: https://www.dropbox.com/s/czf6patx3068iud/Screenshot%202021-01-08%20at%2011.55.13.png?dl=0

Do we have to configure a parameter on jenkins to render shared lib txt file to HTML or Markdown ?

Cheers

Charles

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/466907fb-ea3f-4466-9c6d-06aad4ff59f2n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: shared_lib.txt file containing makrdown or HTML syntax of a global shared lib is not rendered

Charles Moulliard
This is not documented but it is needed then to do a few things:

- Install the markdown-plugin, restart jenkins
- Under "configureSecurity" of jenkins, select as Markup Formatter from the popuplist "Markdown" instead of "Plain text"
- Launch again the job importing the shared lib
- Open now the page containing the generated doc of your job : http://localhost:8080/job/<JOB_NAME>/pipeline-syntax/globals

Remark: Can a contributor/committer update please the content of the page https://www.jenkins.io/doc/book/pipeline/shared-libraries/#directory-structure ?


On Friday, January 8, 2021 at 11:59:21 AM UTC+1 Charles Moulliard wrote:
Hi,

A shared_lib.txt file containing markdown or HTML syntax of a global shared lib is not rendered  when I click on the sidecar link - http://localhost:8080/job/<shared-mytools>/pipeline-syntax/globals


Do we have to configure a parameter on jenkins to render shared lib txt file to HTML or Markdown ?

Cheers

Charles

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3a5f4193-2bb6-4b88-ad63-fe99bd7ebfc6n%40googlegroups.com.