Home Jenkins에 html파일이 깨질 때
Post
Cancel

Jenkins에 html파일이 깨질 때

I. 문제

  • 젠킨스 보안정책으로 html 파일이 제대로 안보일 때가 있다.
  • 나의 경우엔 Serenity Test Report 이미지가 잘 안보임
  • (참조 링크)[https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy]

II. 해결 방법

  1. Manage jenkins로 들어가서
  2. Script Console을 클릭
  3. 아래의 명령어를 입력
1
2
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

This post is licensed under CC BY 4.0 by the author.