No Class found error while running Test Case for Jenkins plugin

2017-12-19 Thread chirag shah
Hi,

I am developing test cases for one of my plugin.  Below is snipped code of 
test case:

>   
>  JenkinsRule.WebClient webClient=rule.createWebClient();
>FreeStyleProject p = (FreeStyleProject) rule.jenkins.getItem(
> "WebApp");
>   
>   HtmlPage page=  webClient.getPage(p,"configure");
>
> .

I am always getting java.lang.NoClassDefFoundError: Could not initialize 
class com.gargoylesoftware.htmlunit.util.EncodingSniffer . I have checked 
dependency jenkins-test-harness-htmlunit and it has same class.

I am having below jenkins and jenkins-test-harness version in my plugin:




2.7.3
8

2.27


Please help me if anybody has solution for it

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e596d419-866b-465d-a5d6-5df992d2a4ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: December 20 project meeting

2017-12-19 Thread R. Tyler Croy
(replies inline)

On Tue, 19 Dec 2017, Daniel Beck wrote:

> 
> > On 6. Dec 2017, at 19:16, Daniel Beck  wrote:
> > 
> > If you have a topic for the next project meeting, be sure to add it to the 
> > agenda well before the evening of December 20, otherwise we might miss it 
> > and will only be able to discuss it next year.
> 
> It's less than 24 hours until the meeting, and no agenda items came up. Let's 
> skip this meeting.



Sounds good to me.


- R. Tyler Croy

--
 Code: 
  Chatter: 
 xmpp: rty...@jabber.org

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/20171219200826.zpt7egq6szzbqpg6%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: December 20 project meeting

2017-12-19 Thread Daniel Beck

> On 6. Dec 2017, at 19:16, Daniel Beck  wrote:
> 
> If you have a topic for the next project meeting, be sure to add it to the 
> agenda well before the evening of December 20, otherwise we might miss it and 
> will only be able to discuss it next year.

It's less than 24 hours until the meeting, and no agenda items came up. Let's 
skip this meeting.

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/DBED40B3-0FD4-46B4-9BEE-FE9C764D18DB%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: slf4j & TaskListener.getLogger intercept

2017-12-19 Thread Shaun Thompson
I guess the other approach is to have the plugin append to the Jenkins 
system log.  The plugin is using slf4j with jul-to-slf4j with a log4j2.xml 
configuration that goes to SYSTEM_OUT.  Before I start trying to find the 
write logging settings, is this possible?

Thanks

On Tuesday, December 19, 2017 at 10:02:31 AM UTC-6, Shaun Thompson wrote:
>
> The way my plugin is setup is that I have a core API that has zero 
> knowledge of Jenkins.   This allows the code to be used in a standalone cmd 
> line or war type application.  Jenkins plugin just orchestrates the code.  
> I think I'll provide a thin wrapper around the TaskListener.PrintStream 
> object for now in order to send valuable build information to the Pipeline 
> build logs.
>
> Thanks
>
> On Monday, December 18, 2017 at 3:04:16 PM UTC-6, Stephen Connolly wrote:
>>
>> Running build related things in the Jenkins JVM is kind of an 
>> anti-pattern IMHO. Better to fork a JVM that you have complete control over 
>> the classloader, in which case the logging goes to STDOUT and you just pipe 
>> that to the build log
>>
>> On 18 December 2017 at 20:16, Shaun Thompson  wrote:
>>
>>> I'm looking to output external logging, API's that use slf4j, to the 
>>> build logs.  
>>>
>>> On Monday, December 18, 2017 at 8:16:18 AM UTC-6, Jesse Glick wrote:

 On Sat, Dec 16, 2017 at 2:18 PM, Shaun Thompson  
 wrote: 
 > intercept logging in a Pipeline 
 > coming from the TaskListener.PrintStream getLogger() for other API's 
 that 
 > are using slf4j. 

 Not sure what you are talking about. Build logs (`TaskListener`) and 
 the system log (`java.util.logging`) are unrelated. 

>>> -- 
>>> 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 jenkinsci-de...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-dev/1a003078-f2a5-4e6d-b42a-782be39da94e%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/27650f95-17bf-4ace-ac62-4e417d1bc270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins crawler does not update Sonarqube scanner for MSBuild versions

2017-12-19 Thread Daniel Beck

> On 19. Dec 2017, at 11:05, Thomas Vérin  wrote:
> 
> We've released new versions of the Sonarqube scanner for msbuild, they are 
> available as versions in github.
> https://github.com/SonarSource/sonar-scanner-msbuild/releases
> 
> But the json file generated by the crawler does not get the updates:
> https://updates.jenkins-ci.org/updates/hudson.plugins.sonar.MsBuildSonarQubeRunnerInstaller.json
> 
> We've checked that the crawler code works, no issue.
> https://github.com/jenkins-infra/crawler/blob/master/sonarqubescannermsbuild.groovy
> 
> Can you check that the crawler is running?

Tools metadata is not currently being updated due to a pending cert update, 
tracked as https://issues.jenkins-ci.org/browse/INFRA-1428

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/EF82376A-26EA-4A76-A87B-8DBCC012BC7C%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Jenkins crawler does not update Sonarqube scanner for MSBuild versions

2017-12-19 Thread Thomas Vérin
Hi, 
We've released new versions of the Sonarqube scanner for msbuild, they are 
available as versions in github.
https://github.com/SonarSource/sonar-scanner-msbuild/releases

But the json file generated by the crawler does not get the updates:
https://updates.jenkins-ci.org/updates/hudson.plugins.sonar.MsBuildSonarQubeRunnerInstaller.json

We've checked that the crawler code works, no issue.
https://github.com/jenkins-infra/crawler/blob/master/sonarqubescannermsbuild.groovy

Can you check that the crawler is running?

Thanks
Tom

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e23423f8-e8a9-4073-8533-d64cea53f92a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [GSoC 2018] - Preliminary announcement

2017-12-19 Thread Oleg Nenashev
Hi,

I suggest discussing the ideas in a Google Doc.
Wiki is fine, but it is complicated to handle the feedback there.
I have started 
https://docs.google.com/document/d/1q2p_XZEdbkcVDMpEPTtjPS15i2Oq3CQgH_geJjPhofY/edit?usp=sharing
 
for now, so please feel free to propose your project ideas there.

Once the ideas are finalized, I will be moving them to the jenkins.io 
website.

BR, Oleg



понедельник, 18 декабря 2017 г., 9:18:13 UTC+1 пользователь Ewelina Wilkosz 
написал:
>
> Count me in, for Jenkins Configuration as Code
>
> On Saturday, December 16, 2017 at 5:50:19 PM UTC+1, martinda wrote:
>>
>> I would like to renew this experience. You can count me in as a mentor.
>>
>> Where should we propose and discuss project ideas? I suggest a page on 
>> the Wiki like GSoC 2016 project idea examples 
>> .
>> I have a few ideas already:
>>
>>- Improvements to workspace data retention feature (aka automatic 
>>workspace clean up)
>>   - Erase  builds older than X days of builds but always keep the 
>>   last Y builds regardless of how old the builds are
>>   - Erase the external workspaces 
>>    in 
>>   accordance with the workspace retention policy
>>   - Summary Report plugin  
>>workflow compatibility
>>- Speed improvements to the ATH (like use a dockerized jenkins 
>>instead of restarting jenkins for every test, but I am sure there are 
>> many 
>>ideas here)
>>
>> Martin
>>
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/a6d89d6f-fff7-458c-a204-685de6dfcc0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.