Skip to content

End Pr210#221

Merged
KostyaSha merged 11 commits intojenkinsci:masterfrom
KostyaSha:pr210
Oct 7, 2019
Merged

End Pr210#221
KostyaSha merged 11 commits intojenkinsci:masterfrom
KostyaSha:pr210

Conversation

@KostyaSha
Copy link
Member

@KostyaSha KostyaSha commented Oct 7, 2019

closes #210

This change is Reviewable

@KostyaSha
Copy link
Member Author

@timja ping


@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

Development

Successfully merging this pull request may close these issues.

7 participants