Re: Problem in Cloudbees custom build environment plugin integration with Jenkins

2016-01-08 Thread Christopher Orr
Hi there, On 08/01/16 09:59, puneet singh wrote: > I am using cloudbees custom build environment plugin to create docker > container and run CI build inside it. > I'm facing following error kindly help me with this. > > ERROR: Processing failed due to a bug in the code. Please report this to > j

Re: Thread hijacking

2016-01-08 Thread Christopher Orr
On 08/01/16 07:58, Dirk Heinrichs wrote: > please don't hijack other peoples threads, it's considered bad habit. False accusations are bad as well ;) The parent didn't hijack any threads, as you can see from a regular email client, the Google Groups web page for the thread, or from the headers of

Re: Java API for Team Foundation Server

2016-01-08 Thread Christopher Orr
On 07/01/16 18:01, Andy Falanga wrote: > Does anyone know the source (not the code but who produces) for the Java > API used by the Jenkins Team Foundation Server plugin? The plugin bundles a com.microsoft.tfs.sdk JAR file: https://github.com/jenkinsci/tfs-plugin/blob/0364972/pom.xml#L219-L225 Th

Re: How to set environment variable based on build parameter

2016-01-08 Thread Marty Mickelson
Aha, I found an (alternative) simple solution! In the job config... *Build Environment* X Inject environment variables to the build process Properties File Path C:\pathtofile\mapping.properties Properties Content THEME_NAME=${${PROJECT_NAME}} Thanks Eric for your reply that led me to the idea. O

Re: How to set environment variable based on build parameter

2016-01-08 Thread Eric Pyle
In bash you could do something like this. Let's assume you have the property file mapping.properties in the workspace, and the user chose proj1 as the value of PROJECT_NAME. . mapping.properties echo ${!PROJECT_NAME} or alternatively: eval THEME_NAME=\$$PROJECT_NAME Thanks to http://tldp.org/

How to set environment variable based on build parameter

2016-01-08 Thread Marty Mickelson
I asked this in StackOverflow but thought this might be a more targeted place to get an answer... I have a parameterized job where I need to set an environment variable based on a choice parameter the user chooses. Each project has a theme project dependency. I'd like to have the user choose th

Jenkins Code of Conduct

2016-01-08 Thread R. Tyler Croy
In case you don't regularly follow the Jenkins blog or twitter, we now have a code of conduct: https://jenkins-ci.org/conduct Some more information about it is in the blog post about it: https://jenkins-ci.org/blog/2016/01/07/official-code-of-conduct/ Cheers - R. Tyler Croy -

Re: Content-Security-Policy in Jenkins

2016-01-08 Thread Daniel Beck
On 08.01.2016, at 11:49, Boris Serdiuk wrote: > Do you have any announcement or migration guide where I can redirect my users? Choose any of these, the full documentation is at most two clicks away: Security advisory announcement: https://groups.google.com/d/msg/jenkinsci-advisories/Zy8yMkQfld4

Re: Next Build Number Groovy Script

2016-01-08 Thread Eric Naitove
Baptiste... Worked. Thank You On Friday, January 8, 2016 at 8:55:48 AM UTC-5, Baptiste Mathus wrote: > > Jenkins.instance?.items.findAll { item -> item instanceof Job } >.findAll { job -> job.lastBuild != null } >.each { job -> println > "${job.na

Re: Next Build Number Groovy Script

2016-01-08 Thread Baptiste Mathus
Jenkins.instance?.items.findAll { item -> item instanceof Job } .findAll { job -> job.lastBuild != null } .each { job -> println "${job.name},${job.nextBuildNumber}" } 2016-01-08 13:35 GMT+00:00 Eric Naitove : > import jenkins.model.* > import jenkins

Re: Next Build Number Groovy Script

2016-01-08 Thread Eric Naitove
import jenkins.model.* import jenkins.model.node.* import jenkins.model.slave.* Jenkins.instance?.items.each { job -> if ( job.getLastBuild() != null ) { println "${job.name},${job.getNextBuildNumber().getNumber()}" } else { } } AND OUTPUT groovy.lang.MissingMethodException: No signature of me

Re: Next Build Number Groovy Script

2016-01-08 Thread Kristian
What about this solution: import jenkins.model.* import jenkins.model.node.* import jenkins.model.slave.* Jenkins.instance?.items.each { job -> if ( job.getLastBuild() != null ) { println "${job.name}" println "${job.getLastBuild().getNumber()}" /// ADDED /// def nextBu

Re: Next Build Number Groovy Script

2016-01-08 Thread Slide
Perhaps it should be getNextBuildNumber with a capital N in next? Without more details on the error or issue this is only a guess. On Fri, Jan 8, 2016, 06:04 Baptiste Mathus wrote: > a bit too succinct? error? more detailed goal? > > 2016-01-08 12:55 GMT+00:00 Eric Naitove : > >> Where am I wron

Re: Next Build Number Groovy Script

2016-01-08 Thread Baptiste Mathus
a bit too succinct? error? more detailed goal? 2016-01-08 12:55 GMT+00:00 Eric Naitove : > Where am I wrong here. I have tried several combinations > > import jenkins.model.* > import jenkins.model.node.* > import jenkins.model.slave.* > > Jenkins.instance?.items.each { job -> > if ( job.getLast

Next Build Number Groovy Script

2016-01-08 Thread Eric Naitove
Where am I wrong here. I have tried several combinations import jenkins.model.* import jenkins.model.node.* import jenkins.model.slave.* Jenkins.instance?.items.each { job -> if ( job.getLastBuild() != null ) { println "${job.name},${job.getLastBuild().getNumber()},${job.getnextBuildNumber().g

Content-Security-Policy in Jenkins

2016-01-08 Thread Boris Serdiuk
Hello! Since Jenkins 1.625.3 you added Content-Security-Policy header for some content from plugins. I understand the reason to do it, but it breaks a lot of use-cases. I am developer of Allure Framework , it is the thing to better test report

Re: export display in a shell script executed by Jenkins

2016-01-08 Thread iostrym
thanks a lot. I didn't see this option "Let Xvfb choose display name" :) Le jeudi 7 janvier 2016 18:57:10 UTC+1, old hooky a écrit : > > > Quoting iostrym >: > > > >> Hi, > >> > >> We have a TCL script that has a GUI that is executed by Jenkins using a > >> shell script in the job. > >> >

Problem in Cloudbees custom build environment plugin integration with Jenkins

2016-01-08 Thread puneet singh
Hi All, I am using cloudbees custom build environment plugin to create docker container and run CI build inside it. I'm facing following error kindly help me with this. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-us...@googlegroups.comjava.lang.RuntimeExce