Hi Mirko, first thanks for the hint but unfortunately i need the information external which i can extract already by REST API but for this i need the way to do some testing of the REST API if all objects etc. are filled correctly ....
Kind regards Karl Heinz Marbaise The question is: On Tuesday, August 11, 2015 at 9:59:29 PM UTC+2, Mirko Friedenhagen wrote: > > Hello Karl-Heinz, > > you create test jobs and let Jenkins parse the changelog for you. Take a > look at > > https://github.com/jenkinsci/jswidgets-plugin/tree/master/src/test/resources/hudson/plugins/jswidgets/PluginIT/jobs/svntest > > for an example. > Regards > Mirko > -- > Sent from my mobile > Am 11.08.2015 21:42 schrieb "Karl Heinz Marbaise" <[email protected] > <javascript:>>: > >> I'm currently in developing a REST API tool ( >> https://github.com/RisingOak/jenkins-client) which gets information >> from jenkins about different aspects and consume the REST API...but now I'm >> at the point where i need to write appropriate tests which means i need to >> setup Jenkins in a test way... >> >> I have found things like this: >> >> @Rule >> public JenkinsRule jenkinsRule = new JenkinsRule(); >> >> FreeStyleProject fsp = >> jenkinsRule.getInstance().createProject(FreeStyleProject.class, >> "TestProject"); >> fsp.scheduleBuild(0, new Cause.UserIdCause(), >> new ParametersAction(new >> StringParameterValue("BUILD", "" + i))); >> >> So the question is how can i inject things like ChangeSet items etc. like >> informations which are coming from version control systems like git, svn >> etc. or does exist a better solution for this? >> >> Can someone give me a hint ? Or better idea? >> >> Thanks in advance. >> >> Kind regards >> Karl Heinz Marbaise >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/207e3311-5538-44ae-a27a-1cc8a8333d91%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/207e3311-5538-44ae-a27a-1cc8a8333d91%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b7ffbe1d-8ac1-4637-871d-5668b419a895%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
