Developing plugin: credentials screen becomes corrupted while pressing "Add credentials"

40 views
Skip to first unread message

Dzmitry Kashlach

unread,
Jul 1, 2016, 6:05:03 AM7/1/16
to Jenkins Developers
Hi All,

I have unclear issue with jenkins gui.
I have a plugin with custom credentials.
When pressing "Add credentials", I see corrupted layout like in attached file.
If I switch to other items from 'Kind' drop-down - layout is ok.

I assume that something is wrong with my credentials.jelly, but can't guess what.
Please, point me to appropriate topic if similar problem was already solved.

Thanks!
BlazeMeterJenkinsPlugin.hpi

Daniel Beck

unread,
Jul 1, 2016, 7:46:18 AM7/1/16
to jenkin...@googlegroups.com

> On 01.07.2016, at 12:05, Dzmitry Kashlach <dzmitry....@blazemeter.com> wrote:
>
> When pressing "Add credentials", I see corrupted layout like in attached file.
>

Did you deliberately attach a Jenkins plugin?

Dzmitry Kashlach

unread,
Jul 1, 2016, 9:17:59 AM7/1/16
to Jenkins Developers
Sorry, Daniel, no, by mistake. Attached correct file.
credentials-gui-issue.png

Daniel Beck

unread,
Jul 1, 2016, 9:41:28 AM7/1/16
to jenkin...@googlegroups.com
Definitely not your fault. It's a weird JS layout issue. Resizing the window will also fix it. May be resolved in newer Credentials Plugin releases, not sure.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f713f6fa-385f-4dc9-97c5-06d06f4d3d0b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <credentials-gui-issue.png>

Dzmitry Kashlach

unread,
Jul 1, 2016, 10:04:12 AM7/1/16
to Jenkins Developers
Thank you, clear. I've just been confused that other items are displayed well.


On Friday, July 1, 2016 at 1:05:03 PM UTC+3, Dzmitry Kashlach wrote:

Stephen Connolly

unread,
Jul 1, 2016, 11:38:08 AM7/1/16
to jenkin...@googlegroups.com
I put a hack workaround in newer credentials plugin:

Version 2.0.4 (May 24, 2016)

  • Add a workaround for the Jenkins core bug with bottom sticker bars (issue #24662)


Dzmitry Kashlach

unread,
Jul 4, 2016, 5:14:53 AM7/4/16
to Jenkins Developers
Thanks, Stephen,
I run jenkins 2.11 with credentials plugin version 2.1.4, but still issue remains.

Stephen Connolly

unread,
Jul 4, 2016, 5:37:07 AM7/4/16
to jenkin...@googlegroups.com
yeah it's not a perfect workaround... if you can inspect the javascript console or see if https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/resources/com/cloudbees/plugins/credentials/CredentialsStoreAction/DomainWrapper/newCredentials.jelly#L74 the same command fixes without a window resize or exposes a JS error... it would be great

Reply all
Reply to author
Forward
0 new messages