Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

158
Visualizações
Jenkins publishHTML for groovydoc failed to render index.html perhaps due to javascript presense

How can I get groovydoc index.html to render in jenkins?

  • build calls groovydoc gradle task
  • uses publishHTML to publish
publishHTML(target: [
        allowMissing         : false,
        alwaysLinkToLastBuild: false,
        keepAll              : true,
        reportDir            : 'build/docs/groovydoc',
        reportFiles          : 'index.html',

and fails to render properly. Looking at the html files I see that index.html uses javascript and index-all.html does not. Publishing using index-all.html renders fine but is less pretty.

How can I resolve this:

  • How can I selectively allow javascript to run?
  • How can I get gradle to generate more HTML in the index file and no javascript?

I figure, one of those two levers will resolve the problem. I'd prefer the later as I don't really want javascript executing as it presents a risk whereas a groovyscript generation process that takes longer or produces a larger index.html file seems fine to me.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda