-
Notifications
You must be signed in to change notification settings - Fork 5
[JENKINS-57886] Modernize and add JCasC #7
Conversation
@Casz Try to rebase this branch with |
Already rebased once 😓 no worries 🤣 |
CI is currently running here: https://travis-ci.com/casz/gitlab-branch-source-plugin-1 Once merged and you enable travis-ci for the repo we should be golden 😅 |
I am unable to compile it, how can I test it then? 🤔 |
Comment out the broken test |
I am getting this scary error: https://gist.github.com/baymac/8e36ffdfc9a7bd30a18f546f756dee15 |
@baymac |
|
You can always clean your local maven repo when it goes foobar 😓 |
Did that. Now getting a different less scary error: https://gist.github.com/baymac/934417304e1f03ae09e363be1ffb6171 |
SpotBugs is properly correct on that matter, it wants the field to be static which makes total sense the object should only be instantiated once. No need to have an instance of GitLab Token length for each 😓 |
With updated parent pom we don't need all that custom build logic
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.
lgtm
Still getting this error:
|
@baymac should be fixed by the last force-push 😓 |
@justinharringa I just took the one that was already included in the other test class 😓 I can generate one and throw it away 🐇 |
Just basically making sure if someone finds that token that they can't do anything that'll be nasty or net them a bunch of cryptocurrency. 😆 |
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.
lgtm
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.
When you find time answer my queries. :)
You really ought to target higher Jenkins Core on newer projects.
I prepared the plugin for incremental and cleaned up pom, added sensible checkstyle.
I have added test dependency to JCasC, you can now use
hpi:run
to see JCasC in actionhttp://localhost:8080/jenkins/configuration-as-code
I can see JCasC catches GitLab servers just fine.