GithubHelp home page GithubHelp logo

jenkinsci / simple-theme-plugin Goto Github PK

View Code? Open in Web Editor NEW
56.0 100.0 47.0 205 KB

A simple theme plugin for Jenkins

Home Page: https://plugins.jenkins.io/simple-theme-plugin

License: MIT License

Java 89.51% HTML 0.52% JavaScript 4.58% Groovy 5.40%
jenkins-plugin themes jenkins ui theme

simple-theme-plugin's Introduction

Simple Theme Plugin for Jenkins

Jenkins Plugin GitHub release Jenkins Plugin Installs Build Status GitHub license Maintenance

This plugin allows to customize Jenkin's appearance with custom CSS and JavaScript. It also allows to replace the Favicon.

For a more user-centric approch to theming, take a look at the Theme Manager plugin.

Themes

Some themes can be found on GitHub:

Authors

  • @TobiX
  • @mallowlabs

Contributing

If you want to contribute to this plugin, you probably will need a Jenkins plugin developement environment. This basically means a current version of Java (Java 8 should probably be okay for now) and Apache Maven. See the Jenkins Plugin Tutorial for details.

If you have the proper environment, typing:

$ mvn verify

should create a plugin as target/*.hpi, which you can install in your Jenkins instance. Running

$ mvn hpi:run -Djenkins.version=2.107.3

allows you to spin up a test Jenkins instance on localhost to test your local changes before commiting.

Code Style

This plugin uses the Google Java Code Style, please try to adhere to that style whenever adding new files or making changes to existing files. The style is enforced using the spotless plugin, if the build fails because you were using the "wrong" style, you can fix it by running:

$ mvn spotless:apply

to reformat Java code in the proper style.

License

The MIT License (MIT)

  • Copyright (c) 2011 mallowlabs
  • Copyright (c) 2018-2022 TobiX

See LICENSE

Changelog

simple-theme-plugin's People

Contributors

ala-ableton avatar apedevelopment avatar basil avatar buzztaiki avatar daftano avatar dependabot[bot] avatar jetersen avatar mallowlabs avatar mawinter69 avatar mdouek avatar ndeloof avatar oleg-nenashev avatar sghill-rewrite avatar stephenc avatar timja avatar tobix avatar williambrode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-theme-plugin's Issues

BlueOcean support?

What feature do you want to see added?

Is there a chance to get the CSS being inlined when using the BlueOcean interface?

Upstream changes

No response

User-defined themes no longer work in Jenkins 2.346.1

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows Server 2019

Reproduction steps

  • Write CSS using material theme website, download css file, place in web-accessible location. In my case I had an embedded SVG and light blue color
  • point theme at CSS and refresh
  • Title shows correctly, but none of the colors are correct and icon doesn't show up
  • This worked in Jenkins 2.332.X

Expected Results

Theme properly displays with blue and icon

Actual Results

Theme is entirely black, no icon

Anything else?

No response

when we place jenkins logo on jenkins pod, its not loading

Jenkins and plugins versions report

Environment
Jenkins

we have installed jenkins via Kubernetes pod, we are trying to change logo.

When we place our logo in <Jenkins_home>/userContent/layout/logo.png and under configure system when we add custom css as below the logo never load

.logo img {
content: url("<Jenkins_home>/userContent/layout/logo.png");
}

What Operating System are you using (both controller, and any agents involved in the problem)?

we use Kubernetes pod, image that we use is jenkins/jenkins:2.387.2

Reproduction steps

  1. place the logo in pod location <Jenkins_home>/userContent/layout/
  2. in configure system --> under theme section --> extra css --> provide below css
.logo img {
content: url("<Jenkins_home>/userContent/layout/logo.png");
}

Expected Results

logo should be displayed on jenkins home page

Actual Results

logo / image does not load

Anything else?

No response

Jenkins upgrade messed up console output and header formatting

Jenkins and plugins versions report

Jenkins: 2.346.2
OS: Linux - 3.10.0-1160.71.1.el7.x86_64

active-directory:2.25.1
ant:475.vf34069fef73c
antisamy-markup-formatter:2.7
apache-httpcomponents-client-4-api:4.5.13-1.0
bootstrap4-api:4.6.0-5
bootstrap5-api:5.1.3-7
bouncycastle-api:2.26
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:1.7.4
command-launcher:84.v4a_97f2027398
conditional-buildstep:1.4.2
copyartifact:1.46.4
credentials:1087.1089.v2f1b_9a_b_040e4
credentials-binding:523.vd859a_4b_122e6
display-url-api:2.3.6
durable-task:496.va67c6f9eefa7
echarts-api:5.3.3-1
email-ext:2.89
extended-read-permission:3.2
external-monitor-job:191.v363d0d1efdf8
file-leak-detector:1.9
font-awesome-api:6.1.1-1
git:4.11.3
git-client:3.11.0
git-parameter:0.9.17
greenballs:1.15.1
hidden-parameter:0.0.5
jackson2-api:2.13.3-285.vc03c0256d517
javadoc:217.v905b_86277a_2a_
javax-activation-api:1.2.0-3
javax-mail-api:1.6.2-6
jaxb:2.3.6-1
jdk-tool:1.5
jnr-posix-api:3.1.7-3
jobConfigHistory:1139.v888b_656ca_f6d
jquery:1.12.4-1
jquery3-api:3.6.0-4
jsch:0.1.55.2
junit:1119.1121.vc43d0fc45561
ldap:2.10
locale:144.v1a_998824ddb_3
mailer:414.vcc4c33714601
mapdb-api:1.0.9.0
matrix-auth:3.1.3
matrix-project:771.v574584b_39e60
maven-plugin:3.19
mina-sshd-api-common:2.8.0-21.v493b_6b_db_22c6
mina-sshd-api-core:2.8.0-21.v493b_6b_db_22c6
monitoring:1.91.0
nodelabelparameter:1.11.0
pam-auth:1.8
parameterized-trigger:2.44
plain-credentials:1.8
plugin-util-api:2.17.0
popper-api:1.16.1-3
popper2-api:2.11.5-2
publish-over:0.22
publish-over-ssh:1.24
resource-disposer:0.19
role-strategy:488.v0634ce149b_8c
run-condition:1.5
saferestart:0.3
scm-api:608.vfa_f971c5a_a_e9
script-security:1175.v4b_d517d6db_f0
simple-theme-plugin:103.va_161d09c38c7
snakeyaml-api:1.30.1
ssh-credentials:277.v95c2fec1c047
ssh-slaves:1.821.vd834f8a_c390e
sshd:3.242.va_db_9da_b_26a_c3
structs:318.va_f3ccb_729b_71
subversion:2.15.5
throttle-concurrents:2.8
token-macro:293.v283932a_0a_b_49
trilead-api:1.57.v6e90e07157e1
update-sites-manager:2.0.0
windows-slaves:1.8.1
workflow-api:1164.v760c223ddb_32
workflow-durable-task-step:1146.v1a_d2e603f929
workflow-job:1186.v8def1a_5f3944
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:625.vd896b_f445a_f8
workflow-support:820.vd1a_6cc65ef33
ws-cleanup:0.42

What Operating System are you using (both controller, and any agents involved in the problem)?

RHEL Linux 7.9 controller
(Agents are RHEL Linuxes.)

Reproduction steps

We just upgraded the Jenkins package from 2.332.3 to 2.346.2

Expected Results

I expected the jenkins-material-theme generated via http://afonsof.com/jenkins-material-theme/ to work (look) as it has been for 3 years.

Actual Results

The console output formatting is unreadable, see screenshot attached to https://issues.jenkins.io/browse/JENKINS-67866

The header is messy too: instead the primary color and the company logo chosen when generating the style.css, a black header is seen, sans the usual logo in the left side.

The console formatting bug is a bit inconsistent, there are moments when the console output is displayed correctly. But if I refresh (CTRL-SHIFT-R) the window, the result is always messed up.

Anything else?

As you can see, someone opened a bug report months ago in the official Jenkins Jira:

https://issues.jenkins.io/browse/JENKINS-67866

Which was closed as "Not A Defect" soon afterwards. Also see comments on said Jira issue.

Configured Favicon isn't used

Jenkins and plugins versions report

Environment
Jenkins: 2.387.1
OS: Linux - 5.15.0-56-generic
Java: 11.0.13 - Ubuntu (OpenJDK 64-Bit Server VM)
---
Parameterized-Remote-Trigger:3.1.6.3
StashBranchParameter:0.3.0
active-directory:2.30
analysis-model-api:11.0.0
ant:481.v7b_09e538fcca
antisamy-markup-formatter:159.v25b_c67cd35fb_
apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5
artifactory:3.18.0
atlassian-bitbucket-server-integration:3.3.2
authentication-tokens:1.4
bitbucket:223.vd12f2bca5430
bitbucket-build-status-notifier:1.4.2
bitbucket-pullrequest-builder:1.5.0
bootstrap4-api:4.6.0-5
bootstrap5-api:5.2.2-1
bouncycastle-api:2.27
branch-api:2.1071.v1a_188a_562481
build-keeper-plugin:19.va_df8a_2c65123
build-name-setter:2.2.0
build-timeout:1.28
build-user-vars-plugin:1.9
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:2.0.0
cloudbees-bitbucket-branch-source:796.v6cb_1559e1673
cloudbees-folder:6.815.v0dd5a_cb_40e0e
cobertura:1.17
code-coverage-api:4.0.0
command-launcher:90.v669d7ccb_7c31
commons-lang3-api:3.12.0-36.vd97de6465d5b_
commons-text-api:1.10.0-36.vc008c8fcda_7b_
conditional-buildstep:1.4.2
config-file-provider:3.11.1
copyartifact:686.v6fd37018d7c2
credentials:1224.vc23ca_a_9a_2cb_0
credentials-binding:523.vd859a_4b_122e6
custom-tools-plugin:0.8
cvs:2.19.1
dashboard-view:2.472.v9ff2a_e6a_c529
data-tables-api:1.13.3-2
delivery-pipeline-plugin:1.4.2
display-url-api:2.3.7
docker-commons:419.v8e3cd84ef49c
downstream-build-cache:1.7
durable-task:504.vb10d1ae5ba2f
echarts-api:5.4.0-2
email-ext:2.95
envinject:2.901.v0038b_6471582
envinject-api:1.199.v3ce31253ed13
extended-choice-parameter:359.v35dcfdd0c20d
extended-read-permission:3.2
external-monitor-job:203.v683c09d993b_9
extra-tool-installers:1.2
font-awesome-api:6.3.0-1
forensics-api:2.0.1
generic-webhook-trigger:1.86.2
gerrit-trigger:2.39.0
gerrit-verify-status-reporter:0.0.3
git:5.0.0
git-client:4.2.0
git-parameter:0.9.18
git-server:99.va_0826a_b_cdfa_d
github:1.37.0
github-api:1.303-417.ve35d9dd78549
github-branch-source:1701.v00cc8184df93
global-build-stats:244.v27c8a_2e50a_34
gradle:2.3.2
groovy-label-assignment:1.2.0
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
hidden-parameter:70.va_40299ce5d83
html-audio-notifier:0.4
html5-notifier-plugin:1.5
htmlpublisher:1.31
implied-labels:0.11
instance-identity:142.v04572ca_5b_265
ionicons-api:45.vf54fca_5d2154
ivy:2.4
jackson2-api:2.14.2-319.v37853346a_229
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:226.v71211feb_e7e9
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.8-1
jdk-tool:63.v62d2fd4b_4793
jenkins-jira-issue-updater:1.18
jersey2-api:2.38-1
jira:3.9
jira-trigger:1.0.2
jjwt-api:0.11.5-77.v646c772fddb_0
jquery:1.12.4-1
jquery3-api:3.6.3-1
jsch:0.1.55.61.va_e9ee26616e7
junit:1189.v1b_e593637fa_e
ldap:671.v2a_9192a_7419d
lenientshutdown:1.1.1
locale:226.v008e1b_58cb_b_0
lockable-resources:1131.vb_7c3d377e723
log-parser:2.3.0
mailer:448.v5b_97805e3767
mapdb-api:1.0.9-28.vf251ce40855d
matrix-auth:3.1.6
matrix-combinations-parameter:1.3.2
matrix-project:785.v06b_7f47b_c631
maven-plugin:3.21
mercurial:1260.vdfb_723cdcc81
metrics:4.2.13-420.vea_2f17932dd6
mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a
mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a
msbuild:1.30
multiple-scms:0.8
naginator:1.18.2
nant:248.vcc8a_3eec8db_a
node-iterator-api:49.v58a_8b_35f8363
nvm-wrapper:0.1.7
okhttp-api:4.10.0-132.v7a_7b_91cef39c
pam-auth:1.10
parameterized-scheduler:1.2
parameterized-trigger:2.45
pipeline-build-step:487.va_823138eee8b_
pipeline-github-lib:42.v0739460cda_c4
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-groovy-lib:629.vb_5627b_ee2104
pipeline-input-step:466.v6d0a_5df34f81
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2118.v31fd5b_9944b_5
pipeline-model-definition:2.2118.v31fd5b_9944b_5
pipeline-model-extensions:2.2118.v31fd5b_9944b_5
pipeline-rest-api:2.31
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2118.v31fd5b_9944b_5
pipeline-stage-view:2.31
pipeline-utility-steps:2.15.1
plain-credentials:143.v1b_df8b_d3b_e48
platformlabeler:1834.v30a_0cdf167e7
plugin-util-api:3.1.0
popper-api:1.16.1-3
popper2-api:2.11.6-2
postbuild-task:1.9
postbuildscript:3.2.0-460.va_fda_0fa_26720
powershell:2.0
preSCMbuildstep:44.v6ef4fd97f56e
prism-api:1.29.0-3
prometheus:2.1.1
publish-over:0.22
publish-over-ssh:1.24
pyenv-pipeline:2.1.2
python:1.3
rebuild:1.34
repo:1.16.0
resource-disposer:0.21
role-strategy:587.v2872c41fa_e51
run-condition:1.5
saferestart:0.7
scm-api:631.v9143df5b_e4a_a
scp:1.8
script-security:1229.v4880b_b_e905a_6
shelve-project-plugin:3.2
simple-theme-plugin:146.v0e67db_a_9052e
snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4
sounds:0.7
ssh:2.6.1
ssh-agent:327.v230ecd01f86f
ssh-credentials:305.v8f4381501156
ssh-slaves:2.877.v365f5eb_a_b_eec
sshd:3.275.v9e17c10f2571
stashNotifier:1.28
structs:324.va_f5d6774f3a_d
subversion:2.17.1
timestamper:1.22
token-macro:321.vd7cc1f2a_52c8
trilead-api:2.84.v72119de229b_7
variant:59.vf075fe829ccb
versioncolumn:95.v82f3985cd6e1
vsphere-cloud:2.27
warnings-ng:10.0.2
workflow-aggregator:596.v8c21c963d92d
workflow-api:1208.v0cc7c6e0da_9e
workflow-basic-steps:1010.vf7a_b_98e847c1
workflow-cps:3641.vf58904a_b_b_5d8
workflow-durable-task-step:1234.v019404b_3832a
workflow-job:1284.v2fe8ed4573d4
workflow-multibranch:733.v109046189126
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:839.v35e2736cfd5c
ws-cleanup:0.44
xshell:129.v99c1dcfa_d3d2
yet-another-build-visualizer:1.16

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

I upgraded Jenkins and all plugins to the latest version. After that, it stops appearing.

I tried:

  • Place favicon file to /userContent directory and change URL to /userContent/favicon.svg
  • Use both favicon URLs at the same time
  • Restart Jenkins multiple times

Favicon I used: https://dwglogo.com/wp-content/uploads/2017/11/Jenkins-logo-003.svg
Theme:
image

Expected Results

The chosen favicon is used.

Actual Results

image

Only default favicon is requested by the site. No topic-related errors nor warnings are shown in the browser console, no failed media requests.

Anything else?

Only happened after upgrade. Can't tell if it is because of plugin or Jenkins update.
Furthermore, if I request /userContent/favicon.svg manually, the SVG can be requested, is truely identical to the SVG from the Web, but can't be displayed.

image

[JENKINS-50346] Cannot style build-monitor since 0.4

I added a "workaround" to not style build-monitor pages at all (cc68d1a82909f6e1fa1f9b4ec2a85b05d738383b) since all styles on GitHub are not aware of that plugin and therefore break its design.

Unfortunatly some users want to style the build-monitor and now aren't able anymore. This should therefore be user-configurable. Maybe tackle support for styling BlueOcean in a similar way (opt-in, see JENKINS-49081)


Originally reported by tgr, imported from: Cannot style build-monitor since 0.4
  • assignee: tgr
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022-10-30

HTML/CSS/JS Rendering in Job Build Summary pages

Jenkins and plugins versions report

Environment
Jenkins: 2.387.1
OS: Linux - 3.10.0-1160.88.1.el7.x86_64
Java: 11.0.19 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
ace-editor:1.1
analysis-model-api:11.1.0
ansicolor:1.0.2
ant:481.v7b_09e538fcca
antisamy-markup-formatter:159.v25b_c67cd35fb_
anything-goes-formatter:19.v3e2b_1b_3e0ee5
apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5
authentication-tokens:1.4
badge:1.9.1
bitbucket:223.vd12f2bca5430
blueocean:1.25.5
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.25.8
blueocean-commons:1.25.8
blueocean-config:1.25.8
blueocean-core-js:1.25.8
blueocean-dashboard:1.25.8
blueocean-display-url:2.4.1
blueocean-events:1.25.8
blueocean-git-pipeline:1.25.8
blueocean-github-pipeline:1.25.8
blueocean-i18n:1.25.8
blueocean-jwt:1.25.8
blueocean-personalization:1.25.8
blueocean-pipeline-api-impl:1.25.8
blueocean-pipeline-editor:1.25.8
blueocean-pipeline-scm-api:1.25.8
blueocean-rest:1.25.8
blueocean-rest-impl:1.25.8
blueocean-web:1.25.8
bootstrap5-api:5.2.2-2
bouncycastle-api:2.26
branch-api:2.1071.v1a_188a_562481
build-monitor-plugin:1.13+build.202205140447
build-name-setter:2.2.0
build-timeout:1.21
build-token-root:151.va_e52fe3215fc
build-user-vars-plugin:1.8
built-on-column:1.1
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
calendar-view:0.3.2
checks-api:2.0.0
cloudbees-bitbucket-branch-source:791.vb_eea_a_476405b
cloudbees-folder:6.800.v71307ca_b_986b
collapsing-console-sections:1.8.0
command-launcher:90.v669d7ccb_7c31
commons-lang3-api:3.12.0-36.vd97de6465d5b_
commons-text-api:1.10.0-36.vc008c8fcda_7b_
conditional-buildstep:1.4.2
config-autorefresh-plugin:1.0
console-column-plugin:131.vcf0ddb_8858c3
credentials:1224.vc23ca_a_9a_2cb_0
credentials-binding:523.vd859a_4b_122e6
csp:1.2
cvs:2.19.1
dark-theme:262.v0202a_4c8fb_6a
dashboard-view:2.472.v9ff2a_e6a_c529
data-tables-api:1.13.3-3
display-url-api:2.3.7
docker-commons:1.21
docker-workflow:521.v1a_a_dd2073b_2e
dropdown-viewstabbar-plugin:1.7
durable-task:500.v8927d9fd99d8
echarts-api:5.4.0-3
electricflow:1.1.31
email-ext:2.91
emailext-template:1.4
envinject:2.881.v37c62073ff97
envinject-api:1.199.v3ce31253ed13
extensible-choice-parameter:1.8.0
external-monitor-job:203.v683c09d993b_9
extra-columns:1.25
favorite:2.4.1
favorite-view:5.v77a_37f62782d
folder-properties:1.2.1
font-awesome-api:6.3.0-2
forensics-api:2.1.0
git:4.12.1
git-changelog:3.30
git-client:3.12.0
git-server:1.11
github:1.34.3
github-api:1.303-400.v35c2d8258028
github-branch-source:1637.vd833b_7ca_7654
greenballs:1.15.1
groovy:442.v817e6d937d6c
groovy-postbuild:2.3.1
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
htmlpublisher:1.31
instance-identity:142.v04572ca_5b_265
ionicons-api:45.vf54fca_5d2154
jackson2-api:2.15.0-334.v317a_165f9b_7c
jakarta-activation-api:2.0.1-1
jakarta-mail-api:2.0.1-1
javadoc:226.v71211feb_e7e9
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-8
jaxb:2.3.8-1
jdk-tool:63.v62d2fd4b_4793
jenkins-design-language:1.25.8
jersey2-api:2.37-1
jira:3.2.1
jjwt-api:0.11.5-77.v646c772fddb_0
jobConfigHistory:1207.vd28a_54732f92
jquery:1.12.4-1
jquery3-api:3.6.4-1
jsch:0.1.55.61.va_e9ee26616e7
junit:1198.ve38db_d1b_c975
ldap:2.12
mailer:438.v02c7f0a_12fa_4
mapdb-api:1.0.9-28.vf251ce40855d
matrix-auth:3.1.5
matrix-combinations-parameter:1.3.1
matrix-project:789.v57a_725b_63c79
maven-plugin:3.22
mercurial:1251.va_b_121f184902
metrics:4.2.10-389.v93143621b_050
mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a
mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a
momentjs:1.1.1
monitoring:1.91.0
next-executions:1.0.15
nodelabelparameter:1.11.0
okhttp-api:4.9.3-108.v0feda04578cf
pam-auth:1.10
parameterized-trigger:2.45
pipeline-build-step:2.18
pipeline-github-lib:38.v445716ea_edda_
pipeline-graph-analysis:195.v5812d95a_a_2f9
pipeline-groovy-lib:612.v84da_9c54906d
pipeline-input-step:449.v77f0e8b_845c4
pipeline-milestone-step:101.vd572fef9d926
pipeline-model-api:2.2114.v2654ca_721309
pipeline-model-definition:2.2114.v2654ca_721309
pipeline-model-extensions:2.2114.v2654ca_721309
pipeline-rest-api:2.24
pipeline-stage-step:293.v200037eefcd5
pipeline-stage-tags-metadata:2.2114.v2654ca_721309
pipeline-stage-view:2.24
plain-credentials:139.ved2b_9cf7587b
plugin-util-api:3.2.0
popper2-api:2.11.6-1
postbuildscript:3.1.0-375.v3db_cd92485e1
prism-api:1.29.0-4
pubsub-light:1.16
rebuild:1.34
role-strategy:562.v44e9a_e828d0e
run-condition:1.5
scm-api:631.v9143df5b_e4a_a
script-security:1244.ve463715a_f89c
scriptler:3.5
simple-theme-plugin:160.vb_76454b_67900
snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4
sse-gateway:1.25
ssh-credentials:295.vced876c18eb_4
ssh-slaves:1.834.v622da_57f702c
sshd:3.275.v9e17c10f2571
startup-trigger-plugin:2.9.3
structs:324.va_f5d6774f3a_d
subversion:2.16.0
theme-manager:1.6
thinBackup:1.17
timestamper:1.18
token-macro:359.vb_cde11682e0c
translation:1.16
trilead-api:2.84.v72119de229b_7
uno-choice:2.6.5
validating-string-parameter:2.8
variant:59.vf075fe829ccb
view-job-filters:2.3
warnings-ng:10.1.0
windows-slaves:1.8.1
workflow-aggregator:590.v6a_d052e5a_a_b_5
workflow-api:1208.v0cc7c6e0da_9e
workflow-basic-steps:980.v82219a_ed188e
workflow-cps:3659.v582dc37621d8
workflow-durable-task-step:1199.v02b_9244f8064
workflow-job:1289.vd1c337fd5354
workflow-multibranch:733.v109046189126
workflow-scm-step:400.v6b_89a_1317c9a_
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:839.v35e2736cfd5c
yaml-axis:0.3.0

What Operating System are you using (both controller, and any agents involved in the problem)?

All on RHEL7.9

Reproduction steps

1.) Install Simple Theme.
2.) Under Configure System, in the Theme section provide the custom CSS and JS files we would like to have render on the Build summary pages. That is the page that comes up after you click on a completed job.

Expected Results

Based on success or failure of the job we display different CSS / JS elements on the Build summary page.

Actual Results

This functionality works on the older releases of Jenkins 2.73.3 for example but does not work on the latest versions of Jenkins 2.387.1.

Anything else?

I've tried adding CSP's to open up functionlity of unsafe inline code but that does not seem to help.

The code is injected successfully into the build results page, but instead of showing as a hyperlink or JS frame, it just displays the code. Its like Jenkins is escaping the text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.