Re: How to disable jobs of type Multi-branch?

2017-05-30 Thread Idan Adar
To disable, can I point to a branch like so? def job = Jenkins.instance.getItem("job-name/branch-name"); job.disable(); And then to enable, maybe it could be achieved also programmatically? def job = Jenkins.instance.getItem("job-name/branch-name"); job.enable(); -- You received this message

Re: How to disable jobs of type Multi-branch?

2017-05-30 Thread Idan Adar
Deleting a branch is definitely not an option. The actual scenario here is that when end-to-end tests are run, if they fail then I want to disable all other jobs (why? Because that's the task I was handed... I don't necessarily agree with this...). In my case those other jobs are of type

Re: Find disk space consumed by a job

2017-05-30 Thread Jeeva Chelladhurai
Thanks for the suggtestions.. can I pull the disk usage data using API? - Jeeva On Tue, May 30, 2017 at 3:04 PM, Baptiste Mathus wrote: > hello, > > https://www.google.fr/search?q=disk+space+jenkins+job first link :-) > shows the Disk Usage plugin, though it's known to cause

Writing a new "parser" for the warnings plugin.

2017-05-30 Thread Simon M
I am trying to understand how to write a new "parser" to work with the Warnings plugin. The "parser" cannot be written by extending the RegexpDocumentParser or RegexpLineParser because I need it to open and read a SQLite3 database. I have been able to write a basic plugin which runs an EDA

Re: How to disable jobs of type Multi-branch?

2017-05-30 Thread Stephen Connolly
On Tue 30 May 2017 at 20:36, Idan Adar wrote: > I thought this would be possible after the fix in > https://issues.jenkins-ci.org/browse/JENKINS-27299, but apparently not > so... Hence asking here. > Remove the branch from being discovered... (then it will be an orphaned branch

How to disable jobs of type Multi-branch?

2017-05-30 Thread Idan Adar
I thought this would be possible after the fix in https://issues.jenkins-ci.org/browse/JENKINS-27299, but apparently not so... Hence asking here. Assuming in a Jenkinsfile, that is run as part of a multi-branch type job, I decide to disable some jobs, e.g: post { failure { script {

chaining jenkins artifactory staging jobs to release multiple artifacts

2017-05-30 Thread Robby Robertino
Hey guys. I've got what seems like a classic problem many people have, and I need a bit of info from people who've been through this before. Basically we currently have a couple of CI jobs, one for each project which needs to generate an artifact. They need to be executed in a specific order.

How to write to Console Output from Pipeline build using Jenkins API

2017-05-30 Thread Łukasz Zachulski
Hello, If it possible to write to Console Output using Jenkins API from with-in Jenkins Pipline script, ie. using TaskListener or Launcher? Looks like "currentBuild.rawBuild" doesn't provide such method. I'm having 3rd party jar which makes a calls to Jenkins API, and I would like to pass it

Re: [ANNOUNCE] Jenkins Upgrades to Java 8

2017-05-30 Thread Baptiste Mathus
*Heads up: next LTS 2.60.1 will require Java 8, and will be released later this June.* 2017-04-11 10:49 GMT+02:00 Pieter-Jan Busschaert < pieterjan.busscha...@gmail.com>: > Hello, > > > We use the debian packages from https://pkg.jenkins.io/debian/ and > upgraded to 2.54 today. I assumed

Re: Pipeline node scheduling options

2017-05-30 Thread John Calsbeek
We are currently using Michael's suggestion of running a job periodically which looks for labels with 0 nodes and assigns that label to a node in the "fallback" pool. We are continuing to manage locality by manually juggling label assignments. So now we have guaranteed incremental builds, which

Re: Resume pipeline on a different slave

2017-05-30 Thread Michael Kobit
Are there other ways than that plugin? It seems like agents should be considered fungible in general. There doesn't seem to be any way on Dumb Slave that I can see. On Tue, May 30, 2017, 08:48 Arvind Jayaprakash wrote: > I face the same issue with Mesos and my understanding

Re: Token macros in non declarative pipelines

2017-05-30 Thread Slide
I am adding a tm step in the next release of token macro. It would follow the same rules as any other pipeline step On Tue, May 30, 2017, 06:44 Arvind Jayaprakash wrote: > Is there a way to directly access the value of token macros such as > WARNINGS_FIXED, WARNINGS_COUNT

Re: Resume pipeline on a different slave

2017-05-30 Thread Arvind Jayaprakash
I face the same issue with Mesos and my understanding is that there is a way to declare slaves as *ephemeral* i.e.they will never come back once they are gone. This appeared to be something that the cloud provider plugin (mesos in this case) needs to worry about. On Thursday, May 25, 2017 at

Re: Need Github pull request number as environment variable

2017-05-30 Thread Arvind Jayaprakash
The environment variable CHANGE_ID contains the PR number On Friday, May 26, 2017 at 6:07:20 AM UTC+5:30, Cody Ebberson wrote: > > Hello, > > I'm configuring Github + Jenkins + Sonar. Almost everything is working, > and I am incredibly pleased (great job!) I'm now struggling with one >

Token macros in non declarative pipelines

2017-05-30 Thread Arvind Jayaprakash
Is there a way to directly access the value of token macros such as WARNINGS_FIXED, WARNINGS_COUNT from a non-declarative pipeline? Also, will the solution work from within library functions or does this have to be at the top level? -- You received this message because you are subscribed to

Re: snipped generator for xunit google test

2017-05-30 Thread Moeed Abdul
Facing the same issue.Where did u find snippet generator for xunit result publishing.Please let me know On Monday, September 12, 2016 at 2:25:50 AM UTC-7, Klaus Rudolph wrote: > > Hi all, > > I want to generate a code snipped to use it in the jenkins pipeline > "Jenkinsfile". > > But I can't

AW: RunListener nullpointer exception

2017-05-30 Thread Lukas Resch
I have already seen that issue. Storage is not the problem on my site, also I don't see any application freezing or zombie processes. So, I don't think it is the same problem. Regards, Lukas Von: bmat...@gmail.com [mailto:bmat...@gmail.com] Im Auftrag von Baptiste Mathus Gesendet: Dienstag,

Re: Find disk space consumed by a job

2017-05-30 Thread Baptiste Mathus
hello, https://www.google.fr/search?q=disk+space+jenkins+job first link :-) shows the Disk Usage plugin, though it's known to cause issues on big instances. You probably would prefer https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Simple+Disk+Usage+Plugin My 2 cents 2017-05-30 11:15

Re: RunListener nullpointer exception

2017-05-30 Thread Baptiste Mathus
>From a 5 seconds search, I found JENKINS-43055 which looks similar wrt the message, though didn't check if this is really the same. My 2 cents 2017-05-30 9:48 GMT+02:00 Lukas Resch : > Hi, > > I am running Jenkins 2.63 on an Ubuntu 14.04 machine and after each >

Find disk space consumed by a job

2017-05-30 Thread Jeeva Chelladhurai
Is there a way to find the disk space consume by a Jenkins job for its workspace and artifact archives... Your support is greatly appreciated -- Jeeva K S Chelladhurai -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

RunListener nullpointer exception

2017-05-30 Thread Lukas Resch
Hi, I am running Jenkins 2.63 on an Ubuntu 14.04 machine and after each successful pipeline build I get a null pointer in the RunListener: May 30, 2017 9:10:49 AM WARNING hudson.model.listeners.RunListener report RunListener failed java.lang.NullPointerException at

Re: Frequent connection losses: java.io.IOException

2017-05-30 Thread Andreas Tscharner
On 29.05.2017 17:31, Stephen Connolly wrote: [snip] The ping is an application level ping, i.e. it submits a command into the command queue and waits for the response to be generated. The command channel can be functioning, but if there is a backlog in the command queue on either side and the

Re: Frequent connection losses: java.io.IOException

2017-05-30 Thread Andreas Tscharner
On 29.05.2017 17:02, Kristian wrote: Did you already looked at https://wiki.jenkins-ci.org/display/JENKINS/Ping+Thread ? No, thank you. I didn't realize that the ping caused the connection loss until yesterday (I am not a Java developer so I missed that) Unfortunately: If I execute the