Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-25 Thread Thad Guidry
Cool ! On Fri, Aug 25, 2017 at 11:09 PM Slide wrote: > I've thought about writing an app that would give you a Jenkins Plugin > Archive with all the plugins and their dependencies, but I haven't gotten > around to it yet. I think it would be useful for people who are cut

Publish over CIFS configuration

2017-08-25 Thread Ted Winslow
I don't seem to be understanding the configuration of the Publish over CIFS plugin. I installed the plugin and am trying to add a CIFS node to no avail. It is showing every field as invalid as I look at the configuration page, which I am guessing is not relevant. I am trying to publish to

Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-25 Thread Slide
I've thought about writing an app that would give you a Jenkins Plugin Archive with all the plugins and their dependencies, but I haven't gotten around to it yet. I think it would be useful for people who are cut off from internet access on their Jenkins server machine, or for people who want to

Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-25 Thread Thad Guidry
I might have misinterpreted. Email sucks. :) I only used the plugin manager and didn't manually drop in plugins. The only issue then is to help users know which plugins are missing much more clearly. Showing only the classnames versus also providing the actual label names from

Re: Not able to start multiple jobs by clocking on Build button in front of job

2017-08-25 Thread Manisha Arora
The job starts. I am executing the iOS build on Veertu Anka Build macOS on-prem cloud. The cloud takes as many requests as you send it and then provisions macOS VMS for those. But, in this case, it seems like Jenkins is not even sending the subsequent requests to Veetu Anka Build Cloud. regards.

Re: Best way to get named parameter in a shared library function

2017-08-25 Thread David Karr
On Fri, Aug 25, 2017 at 12:59 PM, red 888 wrote: > I have this in my shared library in /vars/myLib.groovy: > > def call(Map args) { > > one = args.one > two = args.two > three = args.three > > somePlugin( > someParam: one, > otherParam:

ERROR: Processing failed due to a bug in the code

2017-08-25 Thread Samuel Lopez
Hello Folks, Ubuntu: 16.04 Jenkins: 2.46.3 Maven 3.1.1 Running into this issue: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.IllegalStateException: your Apache Maven build is setup to use a config with id

Best way to get named parameter in a shared library function

2017-08-25 Thread red 888
I have this in my shared library in /vars/myLib.groovy: def call(Map args) { one = args.one two = args.two three = args.three somePlugin( someParam: one, otherParam: two, anotherParam: three ) } Then in my jenkinsfile I call it like this: myLib(

slaves not using all available cpus

2017-08-25 Thread Santiago Baldassin
Hi guys, I'm writing to you because we are having issues making our jenkins slaves to use all available resources when running a build. We have a master-slave deployment with jenkins master running in a t2.large instance type in AWS (2 vCPU and 8GB of RAM) and the slaves running in m4.xlarge

Re: FindBugs Plugin issue with scripted pipeline

2017-08-25 Thread Steffen Elste
... i've created an issue: JENKINS-46469 Regards, Steffen -- 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

Re: Method names for getters/setters in pipeline shared libraries

2017-08-25 Thread red 888
Yup "myFunc.myDerp" works! So is this a groovy thing or is this part of the jenkins DSL? I tried googling, but not sure what this language feature is called. On Friday, August 25, 2017 at 1:54:38 PM UTC-4, David Karr wrote: > > You likely need to reference "myFunc.myDerp" instead. > > On Fri,

Re: Method names for getters/setters in pipeline shared libraries

2017-08-25 Thread David Karr
You likely need to reference "myFunc.myDerp" instead. On Fri, Aug 25, 2017 at 10:33 AM, red 888 wrote: > Im not sure if this is a groovy thing or a jenkins shared library DSL thing > but I don't understand how this automatic getter setter stuff works. > > I have this

Method names for getters/setters in pipeline shared libraries

2017-08-25 Thread red 888
Im not sure if this is a groovy thing or a jenkins shared library DSL thing but I don't understand how this automatic getter setter stuff works. I have this shared lib: /vars/myFunc.groovy I have this in it: def getDerp() { return something } def getHerp() { return something } Now in my

How to safe guard against broken jenkinsfiles causing pipelines to run indefinitely?

2017-08-25 Thread red 888
I have my repo getting polled every 5 mins. But I found that if the jenkinsfile is totally broken the pipeline will fail with "This stage has no steps". Then every 5 mins it will retry it and keep failing. How do I safe guard against this? Can I set a threshold somewhere so if this happens it

Re: Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
This is working for me now, I think the issue was that my groovy file under /var/ was not camel case so it wasn't finding it (locally it was camel case but my source control didn't pick up the rename because it used to be name MyTest.groovy). On Friday, August 25, 2017 at 11:14:30 AM UTC-4,

Re: Jenkins pipeline parallel execution for different nodes on both Declarative and Scripted

2017-08-25 Thread Kevin Burnett
you can use the "parallel" step in a declarative pipeline. you cannot wrap multiple stages inside a parallel step unless you use scripted (currently. this may be implemented in declarative in the future). it is very hard to read code that is not indented. please indent your code. :) i think

Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-25 Thread Slide
I'm pretty sure Daniel didn't say to not use the plugin manager. He said that IF you don't use it, then you need to make sure all the dependencies are handled correctly on your own. The plugin manager does that for you, but just dropping hpi files into JENKINS_HOME is not expected to work if you

Re: Job DSL: How to Use Credentials Store for authenticationToken

2017-08-25 Thread Matthias Fuchs
Thanks for the idea! In the meantime I also thought of a different idea: 1. having global properties for the auth token, e.g. Name: MY_TOKEN Value: 123 2. Access the token directly from the job dsl, e.g. authenticationToken(MY_TOKEN) Since the seed-job has access to the

Re: Jenkins shared library for pipelines “No such property”

2017-08-25 Thread Mark Waite
Maybe you need a "return this" at the end of the groovy file (as in https://github.com/docker/jenkins-pipeline-scripts/blob/master/src/com/docker/utilities/AWSSync.groovy )? On Fri, Aug 25, 2017 at 9:08 AM red 888 wrote: > Im trying to wrap my head around shared

Jenkins shared library for pipelines “No such property”

2017-08-25 Thread red 888
Im trying to wrap my head around shared libraries (with descriptive not scripted pipelines) and I'm not sure how I should be doing this. Right now I have this in my jenkinsfile: def Storeinvar = powershell ( script: '$PSVersionTable.PSVersion.major', returnStdout: true) So I'm

Re: FindBugs Plugin issue with scripted pipeline

2017-08-25 Thread Steffen Elste
> > Hi, > thanks - i'm not sure if i'm allowed to open an issue (yet) - but i'll get it done over the weekend. Cheers, Steffen -- 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

Re: FindBugs Plugin issue with scripted pipeline

2017-08-25 Thread Ullrich Hafner
Ok, I think there is enough information to get the problem reproduced. I’ll write an ATH test case in order to reproduce it locally. Can you please file a corresponding issue in Jira? Otherwise important information might get lost... > Am 25.08.2017 um 08:29 schrieb Steffen Elste

Re: Multiple repository and git parameter plugin

2017-08-25 Thread Mark Waite
You might consider running all the configurations in parallel from a single pipeline script, rather than prompting the user for their choice of branch. You might create a single Jenkinsfile on the branch where the developer is working, then start the different configurations in parallel within

Re: Jenkins crashes with "Illegal character 0x0 for HttpChannelOverHttp" - Why?

2017-08-25 Thread Daniel Beck
> On 25. Aug 2017, at 10:32, daniel.seeba...@gmail.com wrote: > > • "Crash" means it terminates the Jenkins process. > Given that you're using a version of Jenkins with a critical security vulnerability[1][2], which is known to be exploited in a way that terminate the master process,

Re: Job DSL: How to Use Credentials Store for authenticationToken

2017-08-25 Thread Steffen Elste
> > Hi, > to a certain extent it depends on how paranoid You allow yourself to get ;-) One solution could be to use indirection, e.g. via the Config File Provider Plugin. Use an arbitrary token in your job description, and in an additional build step access a configuration file to read the

Re: Jenkins crashes with "Illegal character 0x0 for HttpChannelOverHttp" - Why?

2017-08-25 Thread daniel . seebauer
- "Crash" means it terminates the Jenkins process. - We also assume it was a kind of attack. We use additional webserver authentication with Jenkins since then and have not seen the error again. On Friday, August 25, 2017 at 9:10:59 AM UTC+2, Daniel Beck wrote: > > > > On 10. Feb

Job DSL: How to Use Credentials Store for authenticationToken

2017-08-25 Thread Matthias Fuchs
Hi, I store the job specifications via job DSL on github. For one job I need an authentication token. The docu of authenticationToken mentions: "... For security reasons, do not use a hard-coded token. See Handling Credentials

MSTest plugin poll

2017-08-25 Thread Sebastian Stautz
I appreciate the compatibility to pipeline/jenkinsfile. Would be nice to use it again directly. I haven't used yet the coverage trends. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Re: How do we spin dynamic slaves in Google Cloud platform from Jenkins?

2017-08-25 Thread Viacheslav Dubrovskyi
23.08.2017 22:01, ranjithm пишет: > Could you please let me know how can we create dynamic slaves in Google Cloud > platform from Jenkins? Is there a plugin similar to Amazon EC2? You can try jclouds-plugin -- WBR, Viacheslav Dubrovskyi -- You received this message because you are subscribed

Re: Active Directory authentication + Build agents

2017-08-25 Thread Daniel Beck
> On 11. Aug 2017, at 07:35, Daniel Becroft wrote: > > Our build slaves are (mostly) configured to run as Windows Services under > generic accounts. Do the account that those slaves run under need to be > included in that group? Does that account get

Re: Does anyone know if the MSTest plugin supports pipelines and howto use it in a pipeline (jenkinsfile)?

2017-08-25 Thread Daniel Beck
> On 20. Aug 2017, at 21:45, Slide wrote: > > Just so you are aware, you can release snapshots and they will show up in the > experimental plugin site To clarify, these aren't snapshots, just releases with a magic version number (containing 'alpha' or 'beta'). -- You

Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-25 Thread Daniel Beck
> On 17. Aug 2017, at 21:37, Thad Guidry wrote: > > My suggestion to the Dev team is to get the full Pipeline Plugin suite into > the RPM's going forward. That will alleviate a lot of headache I think for > most folks doing standard CI/CD since many have already

Re: Not able to start multiple jobs by clocking on Build button in front of job

2017-08-25 Thread Daniel Beck
> On 22. Aug 2017, at 21:54, mani...@veertu.com wrote: > > I used to be able to start multiple jobs by clicking multiple times on the > Run button for the job/project on Jenkins dashboard. Now, I have had to > reinstall new Jenkins server and I can't do it anymore. > Does the build actually

Re: Jenkins crashes with "Illegal character 0x0 for HttpChannelOverHttp" - Why?

2017-08-25 Thread Daniel Beck
> On 10. Feb 2017, at 09:50, daniel.seeba...@gmail.com wrote: > > Since a few days I see crashes on Jenkins: (/var/log/jenkins/jenkins.log) To clarify, when you write "crash" you mean "logs a warning"? Or does it actually terminate the Jenkins process? > Feb 10, 2017 4:35:15 AM

AW: Blue Ocean Pipeline Activity View: empty column 'COMMIT'

2017-08-25 Thread Reinhold Fuereder
Does anyone mind if I file a Jenkins bug issue for that? (As I tried to convey, I would have expected that it shows the SVN Commit ID in this column; but as I was not sure on that, I first posted this question in the mailing list here; however due to the lack of any response/explanation I think

Re: FindBugs Plugin issue with scripted pipeline

2017-08-25 Thread Steffen Elste
> > Hi, > well, the Jenkinsfile for use with declarative pipeline and a Jenkinsfile.scripted for scripted pipeline are in the repository ... i probably should have mentioned this. I had a look at the issue - doesn't really fit as in this case i'm not using a multibranch pipeline. Scripted:

Re: MSTest plugin poll

2017-08-25 Thread florian . peschka
I can't comment on the pipelines, but the Emma Coverage Plugin is something we rarely use and the "bad looking picture" as you describe it shows up in every of our builds and it's, well you said it, just ugly to look at and conveys something is broken even though it isn't. So I am highly in