Skip to content

JENKINS-55920: add CasC support to GitHubPluginConfig w/Tests - #210

Closed
er1c wants to merge 6 commits into
jenkinsci:masterfrom
er1c:HOTFIX-add-casc-support
Closed

JENKINS-55920: add CasC support to GitHubPluginConfig w/Tests#210
er1c wants to merge 6 commits into
jenkinsci:masterfrom
er1c:HOTFIX-add-casc-support

Conversation

@er1c

@er1c er1c commented Mar 2, 2019

Copy link
Copy Markdown
Contributor

This is based upon both #205 and #209

I can rebase the PR once #209 is addressed to make the PR cleaner.


This change is Reviewable

@er1c
er1c force-pushed the HOTFIX-add-casc-support branch from bdfd613 to 6a56228 Compare March 3, 2019 05:32
Comment thread pom.xml Outdated
<dependency>
<groupId>io.jenkins</groupId>
<artifactId>configuration-as-code</artifactId>
<version>1.0</version>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timja timja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you point the base branch to be your java 8 PR so the differences can be seen?

@jetersen

jetersen commented Mar 3, 2019

Copy link
Copy Markdown
Member

@er1c would be great if you could rebase:
This diff is no good: dgarzon/github-plugin@HOTFIX-add-casc-support...er1c:HOTFIX-add-casc-support

@er1c
er1c force-pushed the HOTFIX-add-casc-support branch from 6a56228 to ea585ca Compare March 3, 2019 14:19
@er1c

er1c commented Mar 3, 2019

Copy link
Copy Markdown
Contributor Author

@Casz er1c#1

@jetersen jetersen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread pom.xml Outdated
Comment thread src/test/java/org/jenkinsci/plugins/github/config/ConfigAsCodeTest.java Outdated
@er1c
er1c force-pushed the HOTFIX-add-casc-support branch from ea585ca to 4c98e97 Compare April 21, 2019 18:45
@er1c

er1c commented Apr 21, 2019

Copy link
Copy Markdown
Contributor Author

This has been rebased, and the outstanding review comments addressed.

@KostyaSha
KostyaSha requested a review from jglick April 21, 2019 21:09
@Test
@ConfiguredWithCode("configuration-as-code.yml")
public void export_configuration() throws Exception {
/* TODO (From JCASC): Need to provide some YAML assertion library so that the resulting exported yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,17 @@
unclassified:

githubpluginconfig:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe another more minimal test which shows what you need if you set manage hooks false and no hook url?

@jglick jglick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing my request for review as I work on neither this plugin nor configuration-as-code.

@startnow65

Copy link
Copy Markdown

@er1c Thanks for the good work!
Any idea when this would be merged ? I need this so I can set my hook url with JCasC.

Thanks

@oleg-nenashev
oleg-nenashev self-requested a review June 14, 2019 11:17
public void export_configuration() throws Exception {
/* TODO (From JCASC): Need to provide some YAML assertion library so that the resulting exported yaml
stream can be checked for expected content. */
ConfigurationAsCode.get().export(System.out);

@KostyaSha KostyaSha Jun 16, 2019

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never user System.out, use loggers if you want to print something.

@m-barthelemy

Copy link
Copy Markdown

Hi, we're having this issue where hookUrl is ignored in configuration as code.
This PR seems to fix it. Will it get merged?

@oleg-nenashev

Copy link
Copy Markdown
Member

@thirstydeveloper

Copy link
Copy Markdown

Any movement on this? My team is blocked by not being able to set the overrideHookUrl property.

@MaesterZ

MaesterZ commented Aug 9, 2019

Copy link
Copy Markdown

Basically the only thing to set manually at startup or after a Jenkins upgrade. I would be happy to help with this issue, I can do some testing but I am no Java/Groovy dev.

@thefirstofthe300

Copy link
Copy Markdown

Based on @er1c's Github contribution history, it looks like he probably doesn't have bandwidth to work on this anymore. Does anyone here have the Java experience to take over this PR?

I am also hitting this particular issue.

@er1c

er1c commented Sep 3, 2019

Copy link
Copy Markdown
Contributor Author

Based on @er1c's Github contribution history, it looks like he probably doesn't have bandwidth to work on this anymore. Does anyone here have the Java experience to take over this PR?

I am also hitting this particular issue.

I'm currently slammed and don't have time for this. For anyone who is blocked, you can work around it via: https://gist.github.com/er1c/c057640d43c0dce149b0a0c23d1ce153#file-jenkins-github-yaml-L80

I think the remaining "todos" are straightforward, it mostly just needs someone to steward the PR. You probably don't need much java experience :)

@er1c
er1c force-pushed the HOTFIX-add-casc-support branch from 4c98e97 to b08bc56 Compare September 21, 2019 21:10
@KostyaSha KostyaSha mentioned this pull request Oct 7, 2019
@KostyaSha KostyaSha closed this Oct 7, 2019
@jetersen

jetersen commented Oct 8, 2019

Copy link
Copy Markdown
Member

Thanks @er1c for picking this up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.