RE: Jenkins Administration - Role-based Authorization Strategy - Manage & Assign Roles list really big

2018-10-30 Thread Beushausen, Christian
Hi, We set up dedicated AD groups for different types of users (developers, users, integrators) and only those groups are maintained on Jenkins. Everything else is done via the AD groups. Maybe also not the best approach, but this way we were able to mostly centralize all access requests to on

Re: Connecting Jenkins to GitHub

2018-10-30 Thread Mark Waite
If Jenkins is running under your user id and the GitHub repository URL is using SSH and you're using command line git as the git implementation, then command line git fallback to use your default ssh private key. That's a behavior of command line git more than a behavior of Jenkins. If Jenkins is

Re: Problem with Java 8 update 191?

2018-10-30 Thread Mark Waite
Those workspace names are not an indication of an incompatibility. If Jenkins needs to allocate a workspace and it detects that the default named workspace is already in use, it will allocate a second workspace adjacent to the first, with a digit appended to the workspace name. Mark Waite On Mon

Re: Making the jenkins scm checkout smart

2018-10-30 Thread Mark Waite
Replies inline On Tue, Oct 30, 2018 at 7:43 AM touseef wrote: > Hi , > > I have a source code repository having multiple branches say branch1, > branch2 and so on. > > Currently i have a jenkins jobs which builds the master or whatever i > specify in job configuration.Now what i wish to achieve

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread deanwarrenuk
Ok found it here https://updates.jenkins.io/experimental/latest/ On Monday, 29 October 2018 16:28:31 UTC, Ullrich Hafner wrote: > You need to point your update center to the experimental update center > url, see > https://jenkins.io/doc/developer/publishing/releasing-experimental-updates/ > > V

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread dean warren
Awesome, that works! Thanks guys. One last question... :) Where can I find info for the 'pattern' part of the line e.g. def checkstyle = scanForIssues tool: [$class: 'CheckStyle'], pattern: '**/target/checkstyle-result.xml' As my re

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread Ullrich Hafner
You should see an info message in the snippet generator. The default (if left empty) is '**/checkstyle-result.xml‘. Or you can view the JavaDoc documentation (or documentation in https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md). Is your file called checkstyle-re

jacoco report not found

2018-10-30 Thread Pradeep Drall
I am using SonarQube with scanner, jenkins, maven, gradle and wants to display code coverage report in SonarQube. I am getting error "Jacoco report not found" [INFO] Sensor JaCoCoSensor [java] [INFO] JaCoCo report not found: 'E:\pradeep doc\sonarQube\javaproject\cucumberba sic\target\jacoco.ex

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread Ullrich Hafner
This looks like an exception from one of the steps. Is there a stacktrace? If there is no result visible then this is due to an exception. > Am 30.10.2018 um 12:16 schrieb dean warren : > > And also noted this for the same some, following emailing results > > 10:58:11 Sending e-mails to: >

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread dean warren
StackTrace: java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:281) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputS

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread deanwarrenuk
Looks like this is def an issue with the line def checkstyle = scanForIssues tool: [$class: 'CheckStyle'], pattern: '**/mof-api/target/checkstyle-results.xml' As removed all steps except that above and issue still occurs. Do you have a known working checkstyle-results.xml file, just in case so

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread deanwarrenuk
Have reduced the check-style from 200+ issues to just two. Works fine now. So something incompatible with checkstyle-resutls.xml generated and the scanForIssues. @Ullrich, can I send you the checkstyle-resutls.xml to debug (email? would prefer not to post file directly here)? Or perhpas advise

Ansible for administering Jenkins

2018-10-30 Thread gotviseryon
Hi, Can we administer Jenkins using Ansible scripts? If so, any pointers or can I get some sample scripts? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to je

RE: Ansible for administering Jenkins

2018-10-30 Thread Samuli Saarinen
Hi, Would these help: https://galaxy.ansible.com/search?keywords=jenkins&order_by=-relevance&page_size=10 br, Samuli From: jenkinsci-users@googlegroups.com On Behalf Of gotviser...@gmail.com Sent: 30. lokakuutata 2018 15:53 To: Jenkins Users Subject: Ansible for administering Jenkins Hi, C

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread Ullrich Hafner
Can you add the encoding property: checkstyle = scanForIssues reportEncoding='YOUR-ENCODING‘, ... and replace YOUR-ENCODING with the encoding that is defined in the xml line of your checkstyle results.xml file? If this does not work, please create an issue in our issue tracker and attach the X

Re: java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found among steps

2018-10-30 Thread Ullrich Hafner
and one additional question: how is the checkstyle file created? > Am 30.10.2018 um 15:30 schrieb Ullrich Hafner : > > Can you add the encoding property: > > checkstyle = scanForIssues reportEncoding='YOUR-ENCODING‘, ... > > and replace YOUR-ENCODING with the encoding that is defined in the xml

Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-30 Thread Martin d'Anjou
I wrote a proposal to create a plugin to wrap the jenkins-rest library inside a jenkins plugin for Google Summer of Code 2019 (GSoC). This would eliminate the need to pars

Re: Problem with Java 8 update 191?

2018-10-30 Thread James Fairweather
Is there some way for me to find out *why* Jenkins thought the default named workspace was already in use? Our scripts make assumptions about the workspace location and if Jenkins appends something ("@2") to the name of the folder it won't work. On Tue, Oct 30, 2018 at 2:25 AM Mark Waite wrote:

RE: Problem with Java 8 update 191?

2018-10-30 Thread matthew.web...@diamond.ac.uk
>> Is there some way for me to find out *why* Jenkins thought the default named >> workspace was already in use?  Our scripts make assumptions about the >> workspace location and if Jenkins appends something ("@2") to the name of >> the folder it won't work. It's very strange that Jenkins thoug

Re: Ansible for administering Jenkins

2018-10-30 Thread gotviseryon
Thanks for the link Samuli. I found this link. But, am looking for a playbook to maintain the groups created and authenticated through Manage and Assign Roles (Role based authorization strategy). On Tuesday, October 30, 2018 at 10:17:29 AM UTC-4, Samuli Saarinen wrote: > > Hi, > > > > Would

Re: Making the jenkins scm checkout smart

2018-10-30 Thread Ivan Fernandez Calvo
you need to take a look to multibranch pipelines and blueocean, i think it makes what you want https://jenkins.io/projects/blueocean/ https://jenkins.io/doc/book/pipeline/multibranch/ https://jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/ -- You received this message because you

Re: Problem with build step - Windows Batch Command

2018-10-30 Thread Jorge Nuñez
You have to looking in your Jenkins Job if you´r using any step for "windows" and change it to a "shell" El miércoles, 20 de diciembre de 2017, 13:16:13 (UTC-3), vikash singh escribió: > > I am facing the same problem. >> >> Can you tell me how did you resolve it.? > How can i change the workspa

Re: Ansible for administering Jenkins

2018-10-30 Thread Victor Martinez
JCasC might be a good way of automating it - https://wiki.jenkins.io/display/JENKINS/Configuration+as+Code+Plugin There are some examples about configuring the Roles: - https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/integrations/src/test/resources/io/jenkins/plugins/casc/Ro

Re: Jenkins Administration - Role-based Authorization Strategy - Manage & Assign Roles list really big

2018-10-30 Thread Victor Martinez
Already addressed in another thread: - https://groups.google.com/d/msg/jenkinsci-users/uznqn8Y3NRw/ghn1gFROCgAJ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: jacoco report not found

2018-10-30 Thread Victor Martinez
No enough details to understand whether the issue is within the maven project (maybe missing the jacaco configuration), sonar or a misconfiguration within the Jenkins instance somehow, or even some environmental issue. My first approach would be to run the mvn locally and ensure the jacoco rep

Re: Problem with Java 8 update 191?

2018-10-30 Thread James Fairweather
Thanks for the suggestion of using $WORKSPACE, that's an improvement. I still don't know why Jenkins thought the primary workspace was in use but since the problem has disappeared, I won't worry about it for now. On Tue, Oct 30, 2018 at 10:09 AM matthew.web...@diamond.ac.uk < matthew.web...@diamo