-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JENKINS-62739 Remove Bootstrap CSS #60
Conversation
Bumps [support-core](https://github.com/jenkinsci/support-core-plugin) from 2.63 to 2.69. - [Release notes](https://github.com/jenkinsci/support-core-plugin/releases) - [Changelog](https://github.com/jenkinsci/support-core-plugin/blob/master/CHANGELOG.md) - [Commits](jenkinsci/support-core-plugin@support-core-2.63...support-core-2.69) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [hamcrest-core](https://github.com/hamcrest/JavaHamcrest) from 1.3 to 2.2. - [Release notes](https://github.com/hamcrest/JavaHamcrest/releases) - [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md) - [Commits](hamcrest/JavaHamcrest@hamcrest-java-1.3...v2.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [gson](https://github.com/google/gson) from 2.8.1 to 2.8.6. - [Release notes](https://github.com/google/gson/releases) - [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md) - [Commits](google/gson@gson-parent-2.8.1...gson-parent-2.8.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [plugin](https://github.com/jenkinsci/plugin-pom) from 3.50 to 4.4. - [Release notes](https://github.com/jenkinsci/plugin-pom/releases) - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md) - [Commits](jenkinsci/plugin-pom@plugin-3.50...plugin-4.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [hamcrest-library](https://github.com/hamcrest/JavaHamcrest) from 1.3 to 2.2. - [Release notes](https://github.com/hamcrest/JavaHamcrest/releases) - [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md) - [Commits](hamcrest/JavaHamcrest@hamcrest-java-1.3...v2.2)
…plugins-plugin-4.4' into temp
+ Bump plugin from 3.50 to 4.4 + Bump hamcrest-core from 1.3 to 2.2 + Bump hamcrest-library from 1.3 to 2.2
….gson-gson-2.8.6' into lts-2.204.6
…plugins-support-core-2.69' into lts-2.204.6
+ Wrap all the main-panel part in a specific div + Create a local CSS for the missing `alert-success` style (ref JENKINS-62747)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking dark theme, FTR alerts are being re-themed, and will look different in 2.246 being released tomorrow (for dark theme only)
hopefully some of the contrast issues will be fixed in that
src/main/resources/com/cloudbees/jenkins/plugins/advisor/AdvisorGlobalConfiguration/index.jelly
Show resolved
Hide resolved
I don't understand why the build is failing on J11. It seems we are passing in the command line Not sure where thus parameter is coming from. Maybe @jglick or @oleg-nenashev know ? |
Co-authored-by: Tim Jacomb <t.jacomb@kainos.com>
https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/blob/master/Jenkinsfile Change it to be just:
|
@timja 👍 (We really have to keep an eye everywhere) |
likely needs a test adjustment to allow files to be deleted properly on windows, there were some changes in jenkins test harness to surface these errors better I think |
OMG ... Windows.. Why do we still support this crappy stuff |
it looks to be related to jenkinsci/jenkins-test-harness#185 |
Also jenkinsci/jenkins-test-harness#198 perhaps. What is the problem you are seeing? Maybe some bug in your tests? |
Not sure what Lines 94 to 104 in 2ee2232
Anyway why do you need mocks in Line 162 in 2ee2232
@LocalData with a *.jpi.disabled file.
|
@jglick I didn't write this code. I will try to understand better its purpose AFAIR For Line 162 in 2ee2232
|
Use @LocalData to disable the plugin instead of a specific PluginManager (With the hope it makes the test more Windows friendly on our CI env)
@jglick is the best (like often) ! |
the standard test plugin manager does not support disabling plugins at run time. this is because it is reused across tests for speed and does not close the jars that the plugin depends on. |
@jtnord great to know. Thanks |
src/main/resources/com/cloudbees/jenkins/plugins/advisor/AdvisorGlobalConfiguration/index.jelly
Outdated
Show resolved
Hide resolved
src/main/resources/com/cloudbees/jenkins/plugins/advisor/AdvisorGlobalConfiguration/index.jelly
Show resolved
Hide resolved
Suggesting changes to allow theming as progressive enhancement with fallback values. I think it should work. (Not a blocker) |
@fqueiruga I tried it by copying what you proposed in Jira but it gave me that: Am I doing something wrong ? I was test with |
Co-authored-by: Félix Queiruga <felix.queiruga@gmail.com>
Not sure what I did wrong previously @fqueiruga @timja but it's all good with your patch using the CSS variables 2.204.62.245 + Dark ThemeIt looks good to me |
To disect the changes a bit, // Fallback value for IE11
border-color: #c3e6cb;
// Use the the proper CSS variable and if it is not defined, fall back to using #c3e6cb
// As this declaration is invalid in IE11 it will fall back to the previous one
border-color: var(--alert-success-border-color, #c3e6cb); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't been able to test it locally. If you haven't I recommend testing it on IE 11 as well :)
ahhh I better understand @fqueiruga
There was no fallback in the var declaration thus my issue in the rendering and the missing color
AH AH AH IE 11 I think I will do the release and I'll see if I get some bugs reports :-) |
This PR is upgrading jenkins version requirement from 2.138.4 to 2.204.6 + remove the BootStrap CSS to use the native ones proposed by Jenkins
It fixes #61 #62 #63 #64 #65
@fqueiruga I wasn't able to use CSS variables like you proposed in https://issues.jenkins-ci.org/browse/JENKINS-62739 because (at least with 2.204.6) it overrides by empty the first value. It gives:
Changes:
Result
Configuration reminder
Configuration to do
Configuration done
With 2.245 and Dark Theme
It looks ok with the Dark Theme
FYI @timja