Skip to content
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

End Pr210 #221

Merged
merged 11 commits into from
Oct 7, 2019
Merged

End Pr210 #221

merged 11 commits into from
Oct 7, 2019

Conversation

KostyaSha
Copy link
Member

@KostyaSha KostyaSha commented Oct 7, 2019

closes #210

This change is Reviewable

@KostyaSha
Copy link
Member Author

@timja ping

pom.xml Outdated Show resolved Hide resolved

@Test
@ConfiguredWithCode("configuration-as-code.yml")
public void exportConfiguration() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

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

you could probably write a simpler test with a fixture, there's nothing dynamic here so should be straightforward:
https://github.com/jenkinsci/slack-plugin/blob/master/src/test/java/jenkins/plugins/slack/jcasc/ConfigurationAsCodeTest.java#L34

Copy link
Member Author

Choose a reason for hiding this comment

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

What is the difference with the source yaml?

Copy link
Member

Choose a reason for hiding this comment

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

the source yaml is the same, the expected one doesn't have the attribute that you do a .get on, in the case of slack it's missing slackNotifier but has all the fields under it

Copy link
Member Author

Choose a reason for hiding this comment

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

i not sure also btw, final yaml is missing default return settings, is it ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

@timja i can merge&release finally this caasc support and i can accept PR for test update if you want to change it

Copy link
Member

Choose a reason for hiding this comment

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

probably not worth it, it works and is unlikely to ever need to change.

@KostyaSha KostyaSha merged commit e9866b0 into jenkinsci:master Oct 7, 2019
@oleg-nenashev
Copy link
Member

Thanks @KostyaSha !

@KostyaSha
Copy link
Member Author

Thanks for CasC :) Waiting for read only global options.

@jetersen
Copy link
Member

jetersen commented Oct 8, 2019

Thanks @KostyaSha for finishing this up 😊

@KostyaSha KostyaSha deleted the pr210 branch November 7, 2019 00:08
@JackHowa
Copy link

JackHowa commented Sep 15, 2020

This seems like it's a problem. Is there any fix looking for overriding the hook url? https://issues.jenkins-ci.org/browse/JENKINS-60738 @KostyaSha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants