Re: Jenkins integration with any test management tool

2015-05-21 Thread Smita Sinha
Siva,

You have to do certain configuration in Jenkins for ALM projects.
Like server settings and root name from ALM.
If ur RDP connection is correct it should trigger the tests.

Thanks,
Smita



On Thursday, May 21, 2015, Siva shanmugam M  wrote:

> Hi Smita,
>
> Could you please help in steps for integration Jenkins with ALM?
> siva23...@gmail.com 
> Thanks in Advance
>
> On Tuesday, 20 January 2015 15:21:55 UTC+5:30, Smita Sinha wrote:
>
>> Hello Swapnil,
>>
>> Because we moved to HP ALM
>>  I integrated Jenkins with ALM successfully.did not look into Rally
>> integration after that.
>>
>> Thanks,
>> Smita
>>
>> On Sunday, January 18, 2015, Swapnil Tilaye  wrote:
>>
>>> Hi Smita,
>>>
>>> I was wondering if you were able to integrate Jenkins with Rally. I gone
>>> through this page:
>>> https://help.rallydev.com/jenkins-installation-user-guide, but still I
>>> was not able to configure it. I stuck at the part of BuildDefinition part
>>> of the rally project. I was wondering if you can provide the steps to
>>> integrate Jenkins with rally.
>>>
>>> I appreciate your help.
>>>
>>> Regards,
>>> Swapnil
>>>
>>> On Thursday, 12 September 2013 11:03:22 UTC-6, Smita Sinha wrote:

 Hi All,

 Need inputs on Jenkins integration with any test management tool.
 Specifically Rally and Jenkins.
 Please let me know if anyone has worked on this combination.
 Any kind and any level of inputs will be really appreciated.

 Thanks,
 Smita

>>>  --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/1b45bffe-5525-4443-9992-57137e73fb0d%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 Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com
> 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/3d7d43fe-bd5d-42ec-8c59-4baf2b7cf6db%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJCRWyUgpxOrmKYRrKcq4Qre%2BSE2iLD_VRR5D-CYZfbog0HeTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Wallpapers?

2015-05-21 Thread Kavitha Bhaskaran
Hi There:

What plugin would give me different funny wallpapers on Jenkins server - 
builds' result page?

http://apmblog.dynatrace.com/2013/11/27/continuous-performance-validation-in-continuous-integration-environments/
 
-- some pics like here is what I am thinking "I dont always test my 
code..." I dont have JIRA - just Jenkins.

I looked up the plugins but could not easily tell which one could be this.. 


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/036bd774-6e4b-4e32-85b1-0bf94c7e65b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to plot graph using Jenkins Plugins with having my own X and Y axis values and labels?

2015-05-21 Thread ashok alluri
I have Jenkins job running which reads the data from external DB (not local 
to Jenkins server), I want to plot this data (both X and Y axis values are 
read from DB) using Jenkins Plugins. I am finding difficulty with Plot 
plugin as it's X-axis value is always build number, is there anyway that I 
can plot my data against my own x-axis values?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/df7d2a5a-d787-4de8-bfd8-ccd64a40d4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Two jobs that never shall build if the other one builds

2015-05-21 Thread Baptiste Mathus
The thing is: Locks & Latches is subject to deprecation, and Throttle
Concurrent Builds is recommended as an alternative.

Cheers

2015-05-21 18:52 GMT+02:00 Marcus Semblano <
marcus.sembl...@titansgroup.com.br>:

> Would Locks and Latches (
> https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin)
> work for you?
>
> Marcus Semblano
>
>
> On Thu, May 21, 2015 at 12:56 PM, Baptiste Mathus  wrote:
>
>>
>> Le 21 mai 2015 8:59 AM, "tps800"  a écrit :
>> >
>> > On Tuesday, May 19, 2015 at 5:58:12 PM UTC+2, Baptiste Mathus wrote:
>> >>
>> >> Better use the throttle concurrent build plugin IMO. Works fine for us:
>> >>
>> >> Define a central token. Then configure both job to "acquire" it when
>> starting. Done. Both jobs won't run at the same time.
>> >
>> > This plugin isn't as easy to handle (you've to create a central token)
>>
>> Yes that's indeed the only impediment we have identified with this
>> plugin: requiring to be admin to create a token is overkill.
>>
>> We (software factory admins) would like to propose an improvement PR
>> about this, but not top priority at the moment...
>>
>> Cheers
>> -- Baptiste
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5hiPi19bz-Dcj53uoSMT%3DQe8nUSEaQ5bwBeQLkTY782w%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADROnO9k9gHky2TxcJR%2BxbcRRZCjNetahxdfDWtjJa7rqg6DDQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4DodccU%2BUes_n8cKm8emCke6YFqhOiJJ69K4-CW5Cj7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I handle over an environment variable within a build flow?

2015-05-21 Thread tps800


On Thursday, May 21, 2015 at 1:49:56 PM UTC+2, rginga wrote:
>
>  Getting jobs to share the same workspace can be done by “AND set the Use 
> custom workspace in Advanced Project Options to tell each job to use the 
> same workspace”. I must have mistakenly assumed that that workspace 
> contains source code to be built ?
>
>  
>
> You never asked How can I handle an environment variable set for one 
> build to an other build?" in your original message 
>
>  
>
> To access environment tokens in Build-flow I have used :
>
>  
>
> build.properties["environment"]["JOB_NAME"]
>
This was what I was seaching for. It does work now as expected.
 

> build.number
>
>  
>
> the first can be used to get ANY environment variable either defined by 
> Jenkins or injected/defined in your job.
>
>  
>
> Use this groovy to get all the properties of a build:
>
>  
>
> out.println 'Build Object Properties:'
>
> build.properties.each { out.println "$it.key -> $it.value" }
>
>  
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *tps800
> *Sent:* Thursday, May 21, 2015 4:22 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: How can I handle over an environment variable within a 
> build flow?
>
>  
>  
> On Tuesday, May 19, 2015 at 4:26:40 PM UTC+2, rginga wrote:
>  
> Let’s see,,,
>
>  
>
> 1.   What SCM are you using? I use Perforce and can tell the Perforce 
> Plugin “not” to manage “client views” and create one in a fixed location 
> AND set the Use custom workspace in Advanced Project Options to tell each 
> job to use the same workspace. Therefore, Jenkins will not create a 
> workspace with the job name. you do this in each of job1, job2, job,3 etc
>   
> My question was, "How can I handle an environment variable set for one 
> build to an other build?". What does this have to do with the used SCM???
>  
>  
>
> build( "linux-3.10.y.prep", PARENT_WORKSPACE:build.workspace, 
> PARENT_JOB_NAME:build.job_name)
>  
> [...]
>   
>
> Is there a list available listing all properties for "build.*" I can use?
>  
> The property "build.job_name" just doesn't exist. I've tried "
> build.job.name" and "build.jobname" but all with no success:
>  
> {
>  
> groovy.lang.MissingPropertyException 
> :
>  
> No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun
>  
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
>  
> 
>
>  
>
>  at 
> org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
>  
> 
>
>  
>
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
>  
> 
>
>  
>
>  at Script1.run(Script1.groovy:1) 
> 
>
>  
>
>  at Script1$run.call(Unknown Source)
>
>  
>
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>
>  
>
>  at Script1$run.call(Unknown Source)
>
>  
>
>  at 
> com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)
>
>  
>
>  at 
> com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:180)
>
>  
>
>  at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
>
>  
>
>  at hudson.model.Run.execute(Run.java:1744)
>
>  
>
>  at hudson.model.Run.run(Run.java:1682)
>
>  
>
>  at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)
>
>  
>
>  at hudson.model.ResourceController.execute(ResourceController.java:98)
>
>  
>
>  at hudson.model.Executor.run(Executor.java:374)
>
>  
>
>  FATAL: No such property: jobname for class: 
> com.cloudbees.plugins.flow.FlowRun
>
>  
>
>  groovy.lang.MissingPropertyException 
> :
>  
> No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun
>
>  
>
>  at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
>  
> 
>
>  
>
>  at 
> org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
>  
> 
>
>  
>
>  at 
> org.codehaus.groovy.runtime

Change date and time format in views

2015-05-21 Thread tps800
Hi!

jenkins uses a really lengthy date and time format in views. It reads in 
german like (for column "Last success":
2 Stunden 23 Minuten - #12 


I'd liked to have that much shorter and more compact:
2h23m-#12

With:
a-years
m-months
d-days
h-hours
m-minutes
s-seconds

Any configuration to achieve this or do I have to change sources (or write 
a plugin -- in this case any example available)?

-- 
Thomas 

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b184f4d7-0579-4ed5-96d5-27343dd401a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException in org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

2015-05-21 Thread John Lemp
Not sure if it is the same issue but we had the same error after upgrading 
Jenkins and the artifactory plugin. The project settings for the 
Artifactory plugin had no/empty values for "Resolution releases repository" 
and "Resolution snapshots repository". After we set those values it worked.

On Tuesday, April 21, 2015 at 4:48:48 AM UTC-4, Alexander Dvorsky wrote:
>
> Hi there,
>
>  
>
> Since this weekend we are encountering the following problem when we try 
> to execute a maven project right after the SVN Update traces in the console 
> output:
>
>  
>
> ERROR: Processing failed due to a bug in the code. Please report this to 
> .. jenkinsci google group.
>
> java.lang.RuntimeException: java.lang.NullPointerException
>
> at 
> org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
>
> at 
> hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)
>
> at 
> hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
>
> at 
> hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)
>
> at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
>
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
>
> at hudson.model.Run.execute(Run.java:1741)
>
> at 
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
>
> at 
> hudson.model.ResourceController.execute(ResourceController.java:98)
>
> at hudson.model.Executor.run(Executor.java:374)
>
> Caused by: java.lang.NullPointerException
>
> at 
> org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)
>
> at 
> org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)
>
> at 
> org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)
>
> ... 9 more
>
> project=hudson.maven.MavenModuleSet@49bcf9f0[3.8-IAS-Inc-Webadmin 
> ]
>
>
> project.getModules()=[hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath:]]
>
> project.getRootModule()
> =hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath
>  
> :]
>
> FATAL: java.lang.NullPointerException
>
> java.lang.RuntimeException: java.lang.NullPointerException
>
> at 
> org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
>
> at 
> hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)
>
> at 
> hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
>
> at 
> hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)
>
> at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
>
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
>
> at hudson.model.Run.execute(Run.java:1741)
>
> at 
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
>
> at 
> hudson.model.ResourceController.execute(ResourceController.java:98)
>
> at hudson.model.Executor.run(Executor.java:374)
>
> Caused by: java.lang.NullPointerException
>
> at 
> org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)
>
> at 
> org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)
>
> at 
> org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)
>
> ... 9 more
>
>   
>
> I have never seen an error like this. Even our java guy is out of ideas…
>
> Have anyone of you encountered something like this and know how to 
> "revive" my Maven Jobs?
>
>
> best regards,
>
> Alexander D.
> ...

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7ea9a71b-d76b-48da-97c9-9ce7d951966b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EC2 plugin] All nodes of label 'my_label' are offline

2015-05-21 Thread Simone Dalmasso
Ah 
and 
println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength())
 
 returns 1 now.

Il giorno giovedì 21 maggio 2015 20:06:41 UTC+2, Simone Dalmasso ha scritto:
>
> Sorry, I was running that code without the job waiting. Now that I fired 
> up the 
> build  Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() 
> returns 1. But still the node is not coming up automatically with the 
> message All node of label 'mylablel' are offline.
>
> Il giorno giovedì 21 maggio 2015 20:03:16 UTC+2, Simone Dalmasso ha 
> scritto:
>>
>> Thanks for the quick answer, I changed my_label to mylabel just to avoid 
>> underscores but, as you say, println( 
>> Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() ) returns 0.
>> While 
>> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>>  
>> ) returns 0 as well.
>>
>> If I understand correctly there's nothing that I can do to solve this at 
>> the moment right?
>>
>> Il giorno giovedì 21 maggio 2015 17:52:44 UTC+2, Suckow, Thomas J ha 
>> scritto:
>>>
>>>  Assuming you have things configured correctly I would believe it is 
>>> related to https://issues.jenkins-ci.org/browse/JENKINS-27034
>>>
>>>  To confirm:
>>> In the groovy console /script you can try the following replacing 
>>> my&&label with your my_label expression. If it prints 0, I'd bet it is 
>>> the issue above.
>>> println( 
>>> Label.get("my&&label").nodeProvisioner.stat.computeQueueLength() )
>>>
>>>  Also somewhat related, the following will print 1 but should be 0
>>> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>>>  
>>> )
>>>
>>>  My workaround is to visit /updateCenter/ and check the restart box, 
>>> this will usually cause the cloud slave to be started. For me it happens 
>>> with the docker cloud "randomly" and certainly has "moods"
>>>
>>>   From: Simone Dalmasso 
>>> Reply-To: "jenkins...@googlegroups.com" 
>>> Date: Thursday, May 21, 2015 at 8:17 AM
>>> To: "jenkins...@googlegroups.com" 
>>> Subject: [EC2 plugin] All nodes of label 'my_label' are offline
>>>  
>>>   Hi everyone, 
>>>
>>>  I'm using the EC2 plugin and I recently added a second AMI 
>>> configuration in the cloud tab with a label to use within a job.
>>> Unfortunately the job is not launching the node when I trigger a build. 
>>> I have to do it manually from the jenkins -> manage nodes section.
>>> I have another job using another node and is just working fine. I 
>>> restrict the jobs to the nodes using the labels and there are no specific 
>>> differences between the first and the second configurations apart from the 
>>> label and the instance type.
>>>
>>>  Am I doing something wrong or do you have any suggestions?
>>>
>>>  Thanks in advance
>>>  
>>> -- 
>>> 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 jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b3b18481-72ce-46bc-a08d-33d607d599c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EC2 plugin] All nodes of label 'my_label' are offline

2015-05-21 Thread Simone Dalmasso
Sorry, I was running that code without the job waiting. Now that I fired up 
the build  Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() 
returns 1. But still the node is not coming up automatically with the 
message All node of label 'mylablel' are offline.

Il giorno giovedì 21 maggio 2015 20:03:16 UTC+2, Simone Dalmasso ha scritto:
>
> Thanks for the quick answer, I changed my_label to mylabel just to avoid 
> underscores but, as you say, println( 
> Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() ) returns 0.
> While 
> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>  
> ) returns 0 as well.
>
> If I understand correctly there's nothing that I can do to solve this at 
> the moment right?
>
> Il giorno giovedì 21 maggio 2015 17:52:44 UTC+2, Suckow, Thomas J ha 
> scritto:
>>
>>  Assuming you have things configured correctly I would believe it is 
>> related to https://issues.jenkins-ci.org/browse/JENKINS-27034
>>
>>  To confirm:
>> In the groovy console /script you can try the following replacing 
>> my&&label with your my_label expression. If it prints 0, I'd bet it is 
>> the issue above.
>> println( Label.get("my&&label").nodeProvisioner.stat.computeQueueLength() 
>> )
>>
>>  Also somewhat related, the following will print 1 but should be 0
>> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>>  
>> )
>>
>>  My workaround is to visit /updateCenter/ and check the restart box, 
>> this will usually cause the cloud slave to be started. For me it happens 
>> with the docker cloud "randomly" and certainly has "moods"
>>
>>   From: Simone Dalmasso 
>> Reply-To: "jenkins...@googlegroups.com" 
>> Date: Thursday, May 21, 2015 at 8:17 AM
>> To: "jenkins...@googlegroups.com" 
>> Subject: [EC2 plugin] All nodes of label 'my_label' are offline
>>  
>>   Hi everyone, 
>>
>>  I'm using the EC2 plugin and I recently added a second AMI 
>> configuration in the cloud tab with a label to use within a job.
>> Unfortunately the job is not launching the node when I trigger a build. I 
>> have to do it manually from the jenkins -> manage nodes section.
>> I have another job using another node and is just working fine. I 
>> restrict the jobs to the nodes using the labels and there are no specific 
>> differences between the first and the second configurations apart from the 
>> label and the instance type.
>>
>>  Am I doing something wrong or do you have any suggestions?
>>
>>  Thanks in advance
>>  
>> -- 
>> 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 jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8d7556be-72ff-4065-ba24-a5a32d5c6599%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EC2 plugin] All nodes of label 'my_label' are offline

2015-05-21 Thread Simone Dalmasso
Thanks for the quick answer, I changed my_label to mylabel just to avoid 
underscores but, as you say, println( 
Label.get("mylabel").nodeProvisioner.stat.computeQueueLength() ) returns 0.
While 
println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
 
) returns 0 as well.

If I understand correctly there's nothing that I can do to solve this at 
the moment right?

Il giorno giovedì 21 maggio 2015 17:52:44 UTC+2, Suckow, Thomas J ha 
scritto:
>
>  Assuming you have things configured correctly I would believe it is 
> related to https://issues.jenkins-ci.org/browse/JENKINS-27034
>
>  To confirm:
> In the groovy console /script you can try the following replacing 
> my&&label with your my_label expression. If it prints 0, I'd bet it is 
> the issue above.
> println( Label.get("my&&label").nodeProvisioner.stat.computeQueueLength() )
>
>  Also somewhat related, the following will print 1 but should be 0
> println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
>  
> )
>
>  My workaround is to visit /updateCenter/ and check the restart box, this 
> will usually cause the cloud slave to be started. For me it happens with 
> the docker cloud "randomly" and certainly has "moods"
>
>   From: Simone Dalmasso >
> Reply-To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Date: Thursday, May 21, 2015 at 8:17 AM
> To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Subject: [EC2 plugin] All nodes of label 'my_label' are offline
>  
>   Hi everyone, 
>
>  I'm using the EC2 plugin and I recently added a second AMI configuration 
> in the cloud tab with a label to use within a job.
> Unfortunately the job is not launching the node when I trigger a build. I 
> have to do it manually from the jenkins -> manage nodes section.
> I have another job using another node and is just working fine. I restrict 
> the jobs to the nodes using the labels and there are no specific 
> differences between the first and the second configurations apart from the 
> label and the instance type.
>
>  Am I doing something wrong or do you have any suggestions?
>
>  Thanks in advance
>  
> -- 
> 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 jenkinsci-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4a9df393-a776-4407-af8e-7d75f1a66773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Two jobs that never shall build if the other one builds

2015-05-21 Thread Marcus Semblano
Would Locks and Latches (
https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin) work
for you?

Marcus Semblano


On Thu, May 21, 2015 at 12:56 PM, Baptiste Mathus  wrote:

>
> Le 21 mai 2015 8:59 AM, "tps800"  a écrit :
> >
> > On Tuesday, May 19, 2015 at 5:58:12 PM UTC+2, Baptiste Mathus wrote:
> >>
> >> Better use the throttle concurrent build plugin IMO. Works fine for us:
> >>
> >> Define a central token. Then configure both job to "acquire" it when
> starting. Done. Both jobs won't run at the same time.
> >
> > This plugin isn't as easy to handle (you've to create a central token)
>
> Yes that's indeed the only impediment we have identified with this plugin:
> requiring to be admin to create a token is overkill.
>
> We (software factory admins) would like to propose an improvement PR about
> this, but not top priority at the moment...
>
> Cheers
> -- Baptiste
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5hiPi19bz-Dcj53uoSMT%3DQe8nUSEaQ5bwBeQLkTY782w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADROnO9k9gHky2TxcJR%2BxbcRRZCjNetahxdfDWtjJa7rqg6DDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Two jobs that never shall build if the other one builds

2015-05-21 Thread Baptiste Mathus
Le 21 mai 2015 8:59 AM, "tps800"  a écrit :
>
> On Tuesday, May 19, 2015 at 5:58:12 PM UTC+2, Baptiste Mathus wrote:
>>
>> Better use the throttle concurrent build plugin IMO. Works fine for us:
>>
>> Define a central token. Then configure both job to "acquire" it when
starting. Done. Both jobs won't run at the same time.
>
> This plugin isn't as easy to handle (you've to create a central token)

Yes that's indeed the only impediment we have identified with this plugin:
requiring to be admin to create a token is overkill.

We (software factory admins) would like to propose an improvement PR about
this, but not top priority at the moment...

Cheers
-- Baptiste

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5hiPi19bz-Dcj53uoSMT%3DQe8nUSEaQ5bwBeQLkTY782w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EC2 plugin] All nodes of label 'my_label' are offline

2015-05-21 Thread Suckow, Thomas J
Assuming you have things configured correctly I would believe it is related to 
https://issues.jenkins-ci.org/browse/JENKINS-27034

To confirm:
In the groovy console /script you can try the following replacing my&&label 
with your my_label expression. If it prints 0, I'd bet it is the issue above.
println( Label.get("my&&label").nodeProvisioner.stat.computeQueueLength() )

Also somewhat related, the following will print 1 but should be 0
println(Jenkins.getInstance().unlabeledNodeProvisioner.stat.computeQueueLength()
 )

My workaround is to visit /updateCenter/ and check the restart box, this will 
usually cause the cloud slave to be started. For me it happens with the docker 
cloud "randomly" and certainly has "moods"

From: Simone Dalmasso 
mailto:simone.dalma...@gmail.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, May 21, 2015 at 8:17 AM
To: "jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: [EC2 plugin] All nodes of label 'my_label' are offline

Hi everyone,

I'm using the EC2 plugin and I recently added a second AMI configuration in the 
cloud tab with a label to use within a job.
Unfortunately the job is not launching the node when I trigger a build. I have 
to do it manually from the jenkins -> manage nodes section.
I have another job using another node and is just working fine. I restrict the 
jobs to the nodes using the labels and there are no specific differences 
between the first and the second configurations apart from the label and the 
instance type.

Am I doing something wrong or do you have any suggestions?

Thanks in advance

--
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 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D1834A73.14EA5%25thomas.suckow%40pnnl.gov.
For more options, visit https://groups.google.com/d/optout.


[EC2 plugin] All nodes of label 'my_label' are offline

2015-05-21 Thread Simone Dalmasso
Hi everyone,

I'm using the EC2 plugin and I recently added a second AMI configuration in 
the cloud tab with a label to use within a job.
Unfortunately the job is not launching the node when I trigger a build. I 
have to do it manually from the jenkins -> manage nodes section.
I have another job using another node and is just working fine. I restrict 
the jobs to the nodes using the labels and there are no specific 
differences between the first and the second configurations apart from the 
label and the instance type.

Am I doing something wrong or do you have any suggestions?

Thanks in advance

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f8cfad5b-c55a-42b2-8e26-bfb576b63bba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins configuration and selenium Grid

2015-05-21 Thread steliosP
Any Selenium Grid plugin users around?

On Monday, May 18, 2015 at 12:55:26 PM UTC+3, steliosP wrote:
>
> Hello guys, I am trying to set up Jenkins with selenium grid.
> I have downloaded selenium plugin, and when I start the nodes, I can see 
> them in Jenkin's selenium grid tab.
> However, whenI try to build my project, nothing happens, because jenkins 
> doesn't find any connected nodes.It's the same message when you're not 
> running in grid, and no slaves are connected:
> #361 (pending—Waiting for next available executor) 
>
> Some info regarding the project I am building:
> A maven project, that pulls the latest from git, and then a parametrized 
> build happens, that has the parameter 
>
> -Dsuite.Files=testSuite.xml
>
> so only a specific testSuite is going to run
>
> Any solution to my problem?
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/345ae109-55d3-462a-b7ba-1cb581d4cf2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread robert . stone
Mark, thank you so much for the help. That worked. Once I updated 
/etc/init.d/jenkins like you said, jenkins started when I did "service 
jenkins start"

On Thursday, May 21, 2015 at 10:36:42 AM UTC-4, Mark Waite wrote:
>
> Yes, you need to assure that the JDK 7 java is the first one found by that 
> start script.
>
> On Thu, May 21, 2015 at 7:56 AM > 
> wrote:
>
>> That got me thinking though, the jenkins script in /etc/init.d does have 
>> a for loop:
>>
>> for candidate in /usr/lib/jvm/java-1.6.0/bin/java 
>> /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java 
>> /usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java
>>
>>
>> Could I add in the path to my java 7 (which does exists)? /usr/lib/jvm
>> /jre-1.7.0/java
>>
>>
>> On Thursday, May 21, 2015 at 9:53:00 AM UTC-4, robert...@onyxpoint.com 
>> wrote:
>>>
>>> Oh interesting thanks.
>>>
>>> So the only thing I see in there that MIGHT be close to that is this:
>>>
>>> JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp 
>>> -Djava.awt.headless=true 
>>> -Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m 
>>> -XX:PermSize=32m -XX:MaxPermSize=256m"
>>>
>>>
>>>
>>> On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:

 The script that is executed by "service jenkins start" is likely 
 explicitly declaring a java version by its path to the java executable.  
 If 
 you're on a Red Hat derivative, you could look at /etc/sysconfig/jenkins 
 to 
 see if it calls for a specific java version.  If you're on a Debian 
 dreivative, you could look at /etc/defaults/jenkins to see if it calls for 
 a specific java version.

 Mark Waite 

 On Thu, May 21, 2015 at 7:04 AM  wrote:

> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 
> 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> When upgrading from the 1.611 war file with 1.612 and running "service 
> jenkins start" in my shell indicates I need java 7 and I'm running 
> java 6. I see that 1.612 now requires Java 7. However, running "java 
> -version" I see:
>
> java version "1.7.0_65"
>
> How can I fix the discrepancy between which version of Java Jenkins is 
> looking at, and which version of Java my server is looking at? In other 
> words: I want to tell Jenkins to use Java 7, which is already installed 
> on 
> my server. All the java variables under System Properties on my Jenkins 
> page point to Java 6.
>
> Thanks
>
> -- 
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/4172a16e-8dfa-4556-a567-4418ff138803%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/643fb3bb-f0b0-4921-ac68-5d827601f5b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread robert . stone
Awesome I will try that. Thanks!

On Thursday, May 21, 2015 at 10:36:42 AM UTC-4, Mark Waite wrote:
>
> Yes, you need to assure that the JDK 7 java is the first one found by that 
> start script.
>
> On Thu, May 21, 2015 at 7:56 AM > 
> wrote:
>
>> That got me thinking though, the jenkins script in /etc/init.d does have 
>> a for loop:
>>
>> for candidate in /usr/lib/jvm/java-1.6.0/bin/java 
>> /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java 
>> /usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java
>>
>>
>> Could I add in the path to my java 7 (which does exists)? /usr/lib/jvm
>> /jre-1.7.0/java
>>
>>
>> On Thursday, May 21, 2015 at 9:53:00 AM UTC-4, robert...@onyxpoint.com 
>> wrote:
>>>
>>> Oh interesting thanks.
>>>
>>> So the only thing I see in there that MIGHT be close to that is this:
>>>
>>> JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp 
>>> -Djava.awt.headless=true 
>>> -Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m 
>>> -XX:PermSize=32m -XX:MaxPermSize=256m"
>>>
>>>
>>>
>>> On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:

 The script that is executed by "service jenkins start" is likely 
 explicitly declaring a java version by its path to the java executable.  
 If 
 you're on a Red Hat derivative, you could look at /etc/sysconfig/jenkins 
 to 
 see if it calls for a specific java version.  If you're on a Debian 
 dreivative, you could look at /etc/defaults/jenkins to see if it calls for 
 a specific java version.

 Mark Waite 

 On Thu, May 21, 2015 at 7:04 AM  wrote:

> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 
> 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> When upgrading from the 1.611 war file with 1.612 and running "service 
> jenkins start" in my shell indicates I need java 7 and I'm running 
> java 6. I see that 1.612 now requires Java 7. However, running "java 
> -version" I see:
>
> java version "1.7.0_65"
>
> How can I fix the discrepancy between which version of Java Jenkins is 
> looking at, and which version of Java my server is looking at? In other 
> words: I want to tell Jenkins to use Java 7, which is already installed 
> on 
> my server. All the java variables under System Properties on my Jenkins 
> page point to Java 6.
>
> Thanks
>
> -- 
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/4172a16e-8dfa-4556-a567-4418ff138803%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f27794d6-eacc-49b6-883a-e97397b14645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread Mark Waite
Yes, you need to assure that the JDK 7 java is the first one found by that
start script.

On Thu, May 21, 2015 at 7:56 AM  wrote:

> That got me thinking though, the jenkins script in /etc/init.d does have a
> for loop:
>
> for candidate in /usr/lib/jvm/java-1.6.0/bin/java
> /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java
> /usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java
>
>
> Could I add in the path to my java 7 (which does exists)? /usr/lib/jvm
> /jre-1.7.0/java
>
>
> On Thursday, May 21, 2015 at 9:53:00 AM UTC-4, robert...@onyxpoint.com
> wrote:
>>
>> Oh interesting thanks.
>>
>> So the only thing I see in there that MIGHT be close to that is this:
>>
>> JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp
>> -Djava.awt.headless=true
>> -Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m
>> -XX:PermSize=32m -XX:MaxPermSize=256m"
>>
>>
>>
>> On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:
>>>
>>> The script that is executed by "service jenkins start" is likely
>>> explicitly declaring a java version by its path to the java executable.  If
>>> you're on a Red Hat derivative, you could look at /etc/sysconfig/jenkins to
>>> see if it calls for a specific java version.  If you're on a Debian
>>> dreivative, you could look at /etc/defaults/jenkins to see if it calls for
>>> a specific java version.
>>>
>>> Mark Waite
>>>
>>> On Thu, May 21, 2015 at 7:04 AM  wrote:
>>>
 jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09
 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

 When upgrading from the 1.611 war file with 1.612 and running "service
 jenkins start" in my shell indicates I need java 7 and I'm running
 java 6. I see that 1.612 now requires Java 7. However, running "java
 -version" I see:

 java version "1.7.0_65"

 How can I fix the discrepancy between which version of Java Jenkins is
 looking at, and which version of Java my server is looking at? In other
 words: I want to tell Jenkins to use Java 7, which is already installed on
 my server. All the java variables under System Properties on my Jenkins
 page point to Java 6.

 Thanks

 --
 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 jenkinsci-use...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/4172a16e-8dfa-4556-a567-4418ff138803%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHFHycU8t4_Hqb_WinQUYt_j-xua6QwgTBgmCCDMDT8PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failed to tun slave from Linux red Hat

2015-05-21 Thread Eldad Cohen
Thanks on your help and response.


On Tuesday, March 17, 2015 at 7:47:44 AM UTC+2, Christopher Orr wrote:
>
> On 14/03/15 21:17, Eldad Cohen wrote: 
> > Thanks 
> > 
> > Jenkins 1.959. 
> > 
> > The issue with SSH is that There is no place to insert the user id and 
> > password. 
>
> It wouldn't be much use if there was no way to provide SSH credentials. 
>   The documentation is comprehensive enough: 
> https://wiki.jenkins-ci.org/display/JENKINS/SSH+Slaves+plugin 
>
> -Chris 
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c3cd74ce-8c97-4f6d-8126-4674e00d02bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread robert . stone
That got me thinking though, the jenkins script in /etc/init.d does have a 
for loop:

for candidate in /usr/lib/jvm/java-1.6.0/bin/java 
/usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java 
/usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java


Could I add in the path to my java 7 (which does exists)? /usr/lib/jvm
/jre-1.7.0/java


On Thursday, May 21, 2015 at 9:53:00 AM UTC-4, robert...@onyxpoint.com 
wrote:
>
> Oh interesting thanks.
>
> So the only thing I see in there that MIGHT be close to that is this:
>
> JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp 
> -Djava.awt.headless=true 
> -Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m 
> -XX:PermSize=32m -XX:MaxPermSize=256m"
>
>
>
> On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:
>>
>> The script that is executed by "service jenkins start" is likely 
>> explicitly declaring a java version by its path to the java executable.  If 
>> you're on a Red Hat derivative, you could look at /etc/sysconfig/jenkins to 
>> see if it calls for a specific java version.  If you're on a Debian 
>> dreivative, you could look at /etc/defaults/jenkins to see if it calls for 
>> a specific java version.
>>
>> Mark Waite 
>>
>> On Thu, May 21, 2015 at 7:04 AM  wrote:
>>
>>> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 
>>> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> When upgrading from the 1.611 war file with 1.612 and running "service 
>>> jenkins start" in my shell indicates I need java 7 and I'm running java 
>>> 6. I see that 1.612 now requires Java 7. However, running "java -version" 
>>> I see:
>>>
>>> java version "1.7.0_65"
>>>
>>> How can I fix the discrepancy between which version of Java Jenkins is 
>>> looking at, and which version of Java my server is looking at? In other 
>>> words: I want to tell Jenkins to use Java 7, which is already installed on 
>>> my server. All the java variables under System Properties on my Jenkins 
>>> page point to Java 6.
>>>
>>> Thanks
>>>
>>> -- 
>>> 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 jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4172a16e-8dfa-4556-a567-4418ff138803%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread robert . stone
Oh interesting thanks.

So the only thing I see in there that MIGHT be close to that is this:

JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp 
-Djava.awt.headless=true 
-Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m 
-XX:PermSize=32m -XX:MaxPermSize=256m"



On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:
>
> The script that is executed by "service jenkins start" is likely 
> explicitly declaring a java version by its path to the java executable.  If 
> you're on a Red Hat derivative, you could look at /etc/sysconfig/jenkins to 
> see if it calls for a specific java version.  If you're on a Debian 
> dreivative, you could look at /etc/defaults/jenkins to see if it calls for 
> a specific java version.
>
> Mark Waite 
>
> On Thu, May 21, 2015 at 7:04 AM > 
> wrote:
>
>> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 
>> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>
>> When upgrading from the 1.611 war file with 1.612 and running "service 
>> jenkins start" in my shell indicates I need java 7 and I'm running java 
>> 6. I see that 1.612 now requires Java 7. However, running "java -version" 
>> I see:
>>
>> java version "1.7.0_65"
>>
>> How can I fix the discrepancy between which version of Java Jenkins is 
>> looking at, and which version of Java my server is looking at? In other 
>> words: I want to tell Jenkins to use Java 7, which is already installed on 
>> my server. All the java variables under System Properties on my Jenkins 
>> page point to Java 6.
>>
>> Thanks
>>
>> -- 
>> 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 jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/384b732a-4756-4d82-aecd-35fd880144f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Java 7 question

2015-05-21 Thread Mark Waite
The script that is executed by "service jenkins start" is likely explicitly
declaring a java version by its path to the java executable.  If you're on
a Red Hat derivative, you could look at /etc/sysconfig/jenkins to see if it
calls for a specific java version.  If you're on a Debian dreivative, you
could look at /etc/defaults/jenkins to see if it calls for a specific java
version.

Mark Waite

On Thu, May 21, 2015 at 7:04 AM  wrote:

> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09
> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> When upgrading from the 1.611 war file with 1.612 and running "service
> jenkins start" in my shell indicates I need java 7 and I'm running java
> 6. I see that 1.612 now requires Java 7. However, running "java -version"
> I see:
>
> java version "1.7.0_65"
>
> How can I fix the discrepancy between which version of Java Jenkins is
> looking at, and which version of Java my server is looking at? In other
> words: I want to tell Jenkins to use Java 7, which is already installed on
> my server. All the java variables under System Properties on my Jenkins
> page point to Java 6.
>
> Thanks
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEUrWq50vw3yhx%3Dz6ez2L8v8z6qhmisNc83iwv5vJPuqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Java 7 question

2015-05-21 Thread robert . stone
jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux

When upgrading from the 1.611 war file with 1.612 and running "service 
jenkins start" in my shell indicates I need java 7 and I'm running java 6. 
I see that 1.612 now requires Java 7. However, running "java -version" I 
see:

java version "1.7.0_65"

How can I fix the discrepancy between which version of Java Jenkins is 
looking at, and which version of Java my server is looking at? In other 
words: I want to tell Jenkins to use Java 7, which is already installed on 
my server. All the java variables under System Properties on my Jenkins 
page point to Java 6.

Thanks

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using Groovy script to set 'Extended Choice Parameter'

2015-05-21 Thread Milan Satpathy
Hi,

I am relatively new to jenkins. I am trying to use 'Extended Choice 
parameters' to display a list of values for the second parameter, depending 
upon first parameter value.

Example: The date values to be displayed depend on the month you have 
choosen.

First Valiable: MONTH 
Range: 1..12

Groovy Script for second variable:
-
MONTH=binding.variables.get('MONTH')

if ((MONTH == 1) || (MONTH == 3) || (MONTH == 7) ||(MONTH == 8)|| (MONTH == 
10))
{
   return 1..31
}
else if (MONTH == 2)
{
  return 1..28
}
else
{
  return 1..30
} 

Result: Always 1..30, i.e. the else condition irrespective of what value is 
set for first parameter. Can anyone suggest how to get it right?
Also is there a way to debug it?

Thanks in advance!

Milan


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/68400c1d-37fb-4cd4-9b9f-2f6fe2a92be4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How Do I Tell Jenkins to Use Java 7 (already installed)

2015-05-21 Thread robert . stone
Is that a jenkins log file? Where can I find that? 

Thanks for the tip.

On Thursday, May 21, 2015 at 8:07:05 AM UTC-4, David Aldrich wrote:
>
>  If you check the connection log for the slave it should show you which 
> Java path is being used by Jenkins.
>
>  
>   
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *
> robert...@onyxpoint.com 
> *Sent:* 21 May 2015 13:04
> *To:* jenkins...@googlegroups.com 
> *Subject:* How Do I Tell Jenkins to Use Java 7 (already installed)
>  
>  
>  
> When I try to start version 1.612, it says I need Java 7 and I'm running 
> Java 6, but my system says I have Java 7. How do I point Jenkins to use the 
> Java 7?
>  
>  
>   
> *uname -a*
>  
> Linux jenkinstest 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 
> 2013 x86_64 x86_64 x86_64 GNU/Linux
>   
>  
>   
> *java -version*
>  
> java version "1.7.0_65"
>  
> OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
>  
> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
>   
>  
>  
> Jenkins --> Manage Jenkins --> System Information: has many java variables 
> pointing to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.35.x86_64. Where can I 
> tell Jenkins to point to my java 7?
>  
>  
>  
> I do have /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64 but I'm just 
> unsure how to tell Jenkins to use that.
>  
> -- 
> 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 jenkinsci-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/bd4cf3b4-8de9-4988-b569-bf66603a412f%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  Click here 
> 
>  
> to report this email as spam.
>   

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dda164e0-4ad9-4954-a588-c7028bad84d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins LDAP -- AD

2015-05-21 Thread Eric Engel
Hi,

I would recommend using the Active Directory Plugin instead of LDAP:
https://wiki.jenkins-ci.org/display/JENKINS/Active+Directory+Plugin

No configuration necessary. Worked like a charm for us.

Regards,
Eric


Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
Im Auftrag von g.fer.ordas
Gesendet: Donnerstag, 21. Mai 2015 07:09
An: jenkinsci-users@googlegroups.com
Betreff: jenkins LDAP -- AD


Hi

I am trying to Use the LDAP plugin to connect to an AD Server

While I can easily run a ldapsearch against the server and I am trying to use 
the same parameters but it does not work.

Neither what is posted in the official page for the plugin



https://wiki.jenkins-ci.org/display/JENKINS/LDAP+Plugin





The extract of my current config is:


mailto:ldap@1.11>">
awsdc1.company.com:389
DC=company,DC=com
false
CN=Users,DC=company,DC=com
sAMAccountName={0}
CN=Users,DC=company,DC=com
{{(& (cn={0}) (objectclass=group) ) 
}}

CN=ldapclient,CN=Users,DC=company,DC=com
ewrewrewrwewerwerwerweer=
false
displayname
mail





Looking at the logs in jenkins I never get any error and for the defined logs 
in the GUI neither .

Any tips?

thanks!!

--
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 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/215c0ec4-4799-4171-9920-e7bbf5377fd6%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DDB06868916F0342A722619DC460E97B50CF0A29%40exch-bln01.
For more options, visit https://groups.google.com/d/optout.


RE: How Do I Tell Jenkins to Use Java 7 (already installed)

2015-05-21 Thread David Aldrich
If you check the connection log for the slave it should show you which Java 
path is being used by Jenkins.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of 
robert.st...@onyxpoint.com
Sent: 21 May 2015 13:04
To: jenkinsci-users@googlegroups.com
Subject: How Do I Tell Jenkins to Use Java 7 (already installed)

When I try to start version 1.612, it says I need Java 7 and I'm running Java 
6, but my system says I have Java 7. How do I point Jenkins to use the Java 7?

uname -a
Linux jenkinstest 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Jenkins --> Manage Jenkins --> System Information: has many java variables 
pointing to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.35.x86_64. Where can I tell 
Jenkins to point to my java 7?

I do have /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64 but I'm just unsure 
how to tell Jenkins to use that.
--
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 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd4cf3b4-8de9-4988-b569-bf66603a412f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Click 
here
 to report this email as spam.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B97779C%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


How Do I Tell Jenkins to Use Java 7 (already installed)

2015-05-21 Thread robert . stone
When I try to start version 1.612, it says I need Java 7 and I'm running 
Java 6, but my system says I have Java 7. How do I point Jenkins to use the 
Java 7?

*uname -a*
Linux jenkinstest 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

*java -version*
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Jenkins --> Manage Jenkins --> System Information: has many java variables 
pointing to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.35.x86_64. Where can I 
tell Jenkins to point to my java 7?

I do have /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64 but I'm just 
unsure how to tell Jenkins to use that.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd4cf3b4-8de9-4988-b569-bf66603a412f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: How can I handle over an environment variable within a build flow?

2015-05-21 Thread Ginga, Dick
Getting jobs to share the same workspace can be done by “AND set the Use custom 
workspace in Advanced Project Options to tell each job to use the same 
workspace”. I must have mistakenly assumed that that workspace contains source 
code to be built ?

You never asked How can I handle an environment variable set for one build to 
an other build?" in your original message 

To access environment tokens in Build-flow I have used :

build.properties["environment"]["JOB_NAME"]
build.number

the first can be used to get ANY environment variable either defined by Jenkins 
or injected/defined in your job.

Use this groovy to get all the properties of a build:

out.println 'Build Object Properties:'
build.properties.each { out.println "$it.key -> $it.value" }



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of tps800
Sent: Thursday, May 21, 2015 4:22 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: How can I handle over an environment variable within a build flow?

On Tuesday, May 19, 2015 at 4:26:40 PM UTC+2, rginga wrote:
Let’s see,,,


1.   What SCM are you using? I use Perforce and can tell the Perforce 
Plugin “not” to manage “client views” and create one in a fixed location AND 
set the Use custom workspace in Advanced Project Options to tell each job to 
use the same workspace. Therefore, Jenkins will not create a workspace with the 
job name. you do this in each of job1, job2, job,3 etc
My question was, "How can I handle an environment variable set for one build to 
an other build?". What does this have to do with the used SCM???

build( "linux-3.10.y.prep", PARENT_WORKSPACE:build.workspace, 
PARENT_JOB_NAME:build.job_name)
[...]

Is there a list available listing all properties for "build.*" I can use?
The property "build.job_name" just doesn't exist. I've tried "build.job.name" 
and "build.jobname" but all with no success:
{
groovy.lang.MissingPropertyException:
 No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun

at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)



at 
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)



at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)



at 
Script1.run(Script1.groovy:1)



at Script1$run.call(Unknown Source)



at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)



at Script1$run.call(Unknown Source)



at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)



at 
com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:180)



at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)



at hudson.model.Run.execute(Run.java:1744)



at hudson.model.Run.run(Run.java:1682)



at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)



at hudson.model.ResourceController.execute(ResourceController.java:98)



at hudson.model.Executor.run(Executor.java:374)



FATAL: No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun



groovy.lang.MissingPropertyException:
 No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun



at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)



at 
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)



at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)



at 
Script1.run(Script1.groovy:1)



at Script1$run.call(Unknown Source)



at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)



at Script1$run.call(Unknown Source)



at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)



a

Re: Jenkins integration with any test management tool

2015-05-21 Thread Siva shanmugam M
Hi Swapnil,

Did u achieve this integration. Appreciate your help for  step by step 
process to achieve the same.

Siva

On Sunday, 18 January 2015 12:21:38 UTC+5:30, Swapnil Tilaye wrote:

> Hi Smita,
>
> I was wondering if you were able to integrate Jenkins with Rally. I gone 
> through this page: 
> https://help.rallydev.com/jenkins-installation-user-guide, but still I 
> was not able to configure it. I stuck at the part of BuildDefinition part 
> of the rally project. I was wondering if you can provide the steps to 
> integrate Jenkins with rally.
>
> I appreciate your help.
>
> Regards,
> Swapnil 
>
> On Thursday, 12 September 2013 11:03:22 UTC-6, Smita Sinha wrote:
>>
>> Hi All,
>>
>> Need inputs on Jenkins integration with any test management tool.
>> Specifically Rally and Jenkins.
>> Please let me know if anyone has worked on this combination.
>> Any kind and any level of inputs will be really appreciated.
>>
>> Thanks,
>> Smita
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3723e30f-0abb-4b49-8af9-c0d41bcb6416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'inheritance-plugin' vs. matrix jobs

2015-05-21 Thread Łukasz Kurek

Jacek, thanks for information and hint about the "mating".

We use matrix jobs for handling builds for different target platforms 
(win32, linux, solaris, aix etc.). Currently we are copying these matrix 
jobs for each development branch, but because they are almost the same, 
we started to think about some way of reducing duplication. I started to 
play with inheritance-plugin but quickly became blocked because I found 
that it does not support matrix jobs. Now I plan to play with 
template-plugin. Or maybe we will just accept the duplication, because 
on the other hand it also gives us some benefits.


Łukasz


Łukasz,
I am not sure what you want to achieve and i am not the expert on matrix jobs but i 
believe you might want to have a look at "mating" in inheritance project.

But afaik you cannot mix inheritance and matrix type of jobs.

--End of answer to question.

Mating allows you to configure classes of projects, let's say class A(with 
projects A1, A2 belonging to it) and B (with B1, B2) and then you can generate 
a matrix of projects :
A1B1, A1B2, A2B1, A2B2. This works in a way that it generates a transient 
projects which inherit from their parents, so A1B1 inherits from A1 and B1.

You can also configure compounds. This allows to define some parameters on 
project A1 and B1. But even the author admits that it is too inflexible for 
broader use.

But it has some cool features because you can have multiple children of the 
same parent if you specify variance.

I am working to make it a bit more flexible so that you are able to:
1. Configure assigned label, to be able to specify nodes a compound will run on.
2. Change priorities of parameters, etc between two parents...
3. Update projects.
4. Fixing "Full build flow" to get the view of the fully derived job as seen by 
Jenkins.
The repository with this changes is here: 
https://github.com/J-cztery/jenkins-inheritance-plugin

The problem with that is that the original maintainer seems dormant and does 
not respond do emails, so i do not know if i am going towards the right 
direction. At least I hope it would work for our project.

Our project has multiple branches we work on. Each branch has pretty much the 
same job configurations as previous(we build 4 msvc variances on Windows, a few 
jobs on Linux, OSX, iOS and for Android). It is probably around 10-20 projects 
in single branch. We build the projects on ~10 slaves. Branching is a headache 
currently because it requires copying so many projects and changing parameters 
in each of them.

So what i want to achieve is to configure a class of project for a branch, that would 
define a few parameters that are specific for this branch and "mate" it with 10 
other projects that would contain configuration for Windows, Linux, etc...

Then branching a project would consist of copying the branch project, changing 
parameters on it, and the rest would happen automatically.

But maybe I could achieve this using matrix projects? What are you doing to 
solve this kind of problems? Does matrix allow to configure on which node will 
a job run? Or set any other parameter?

Regards.
Jacek Tomaka

Użytkownik "Łukasz Kurek"  napisał(a):

Temat: 'inheritance-plugin' vs. matrix jobs
Data: 2015-05-19 10:07
Nadawca: "Łukasz Kurek" 
Adresat: jenkinsci-users@googlegroups.com;

Hello all,

It seems for me that Jenkins 'inheritance-plugin' does not support
matrix jobs ("Multi-configuration projects"). But maybe I'm missing
something. Can anyone confirm that?

--
Wszebor

--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/555AEF22.6070108%40parasoft.com.
For more options, visit https://groups.google.com/d/optout.



--
Łukasz "Wszebor" Kurek

Parasoft S.A. z siedzibą w Krakowie ul. Kiełkowskiego 9, 30-704 Kraków | 
Zarejestrowana w Sądzie Rejonowym dla Krakowa Śródmieścia w Krakowie XI 
Wydział Gospodarczy Krajowego Rejestru Sądowego pod numerem KRS 59188 | 
NIP: 944-15-02-333 | Regon: 351182680 | Wysokość kapitału zakładowego: 
500 000,00 zł.| Wysokość kapitału wpłaconego: 500 000,00 zł.


Parasoft S.A. | Registered Office: Kraków, Kiełkowskiego 9, 30-704 
Kraków | Commercial Registration: XI Commercial Division of the District 
Court for the Kraków Śródmieście under the KRS No.: 59188 | Share 
capital of PLN 50.00 fully covered | Tax identification number 
(NIP): PL9441502333 | REGON No.: 351182680


--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/555D9AE6.8040705%40parasoft.com

Re: Jenkins integration with any test management tool

2015-05-21 Thread Siva shanmugam M
Hi Smita,

Could you please help in steps for integration Jenkins with ALM?
siva23...@gmail.com  Thanks in Advance

On Tuesday, 20 January 2015 15:21:55 UTC+5:30, Smita Sinha wrote:

> Hello Swapnil, 
>
> Because we moved to HP ALM
>  I integrated Jenkins with ALM successfully.did not look into Rally 
> integration after that.
>
> Thanks,
> Smita 
>
> On Sunday, January 18, 2015, Swapnil Tilaye  > wrote:
>
>> Hi Smita,
>>
>> I was wondering if you were able to integrate Jenkins with Rally. I gone 
>> through this page: 
>> https://help.rallydev.com/jenkins-installation-user-guide, but still I 
>> was not able to configure it. I stuck at the part of BuildDefinition part 
>> of the rally project. I was wondering if you can provide the steps to 
>> integrate Jenkins with rally.
>>
>> I appreciate your help.
>>
>> Regards,
>> Swapnil 
>>
>> On Thursday, 12 September 2013 11:03:22 UTC-6, Smita Sinha wrote:
>>>
>>> Hi All,
>>>
>>> Need inputs on Jenkins integration with any test management tool.
>>> Specifically Rally and Jenkins.
>>> Please let me know if anyone has worked on this combination.
>>> Any kind and any level of inputs will be really appreciated.
>>>
>>> Thanks,
>>> Smita
>>>
>>  -- 
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/1b45bffe-5525-4443-9992-57137e73fb0d%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d7d43fe-bd5d-42ec-8c59-4baf2b7cf6db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I handle over an environment variable within a build flow?

2015-05-21 Thread tps800
On Tuesday, May 19, 2015 at 4:26:40 PM UTC+2, rginga wrote:
>
>  Let’s see,,,
>
>  
>
> 1.   What SCM are you using? I use Perforce and can tell the Perforce 
> Plugin “not” to manage “client views” and create one in a fixed location 
> AND set the Use custom workspace in Advanced Project Options to tell each 
> job to use the same workspace. Therefore, Jenkins will not create a 
> workspace with the job name. you do this in each of job1, job2, job,3 etc
>
My question was, "How can I handle an environment variable set for one 
build to an other build?". What does this have to do with the used SCM???

build( "linux-3.10.y.prep", PARENT_WORKSPACE:build.workspace, 
PARENT_JOB_NAME:build.job_name)
[...]

Is there a list available listing all properties for "build.*" I can use?
The property "build.job_name" just doesn't exist. I've tried 
"build.job.name" and "build.jobname" but all with no success:
{
groovy.lang.MissingPropertyException 
:
 
No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun

 

  at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
 


 

  at 
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
 


 

  at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
 


 

  at Script1.run(Script1.groovy:1) 


 

  at Script1$run.call(Unknown Source)

 

  at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

 

  at Script1$run.call(Unknown Source)

 

  at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)

 

  at 
com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:180)

 

  at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)

 

  at hudson.model.Run.execute(Run.java:1744)

 

  at hudson.model.Run.run(Run.java:1682)

 

  at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)

 

  at hudson.model.ResourceController.execute(ResourceController.java:98)

 

  at hudson.model.Executor.run(Executor.java:374)

 
FATAL:
 No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun

 
groovy.lang.MissingPropertyException
 
:
 No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun

 

  at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
 


 

  at 
org.codehaus.groovy.runtime.ca

Re: [workflow-plugin] Get environment variables defined in Jenkins configuration

2015-05-21 Thread Carlos Lucas
It does not works for me.

This is the script:
println myVar

and this is the error:

groovy.lang.MissingPropertyException: No such property: myVar for class: 
WorkflowScript

I think I need to acces it from environment but I don't know how.


El miércoles, 20 de mayo de 2015, 20:23:34 (UTC+2), Yasir Saleem escribió:
>
> You can get them by simply calling by name like:
>
>  testVar = myVar
>
> Where 'testVar' is var defined in the  flow.groovy (or whatever name you 
> gave) script, and 'myVar' is env or parameters (input or choice etc).
>
> if you don't use 'def' they can be global variable, used inside that your 
> flow.groovy class.
>
>
>
> On Monday, May 18, 2015 at 4:24:25 AM UTC-4, Carlos Lucas wrote:
>>
>> Hi,
>>
>> I have some environment variables defined in Jenkins configuration ( 
>> Manage jenkins >> System configuration >> Global properties ) but I am no 
>> able to get their value on a workflow script.
>>
>> I tried with* System.getenv()["myVar"],* *currentBuild.getEnvironment(null), 
>> env.myVar * and accessing like a normal variable but nothing works. Do 
>> you know how can I do it?
>>
>> Thank you!
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9c15cbdd-2d37-4f43-bf44-0ba9eeb673f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow-plugin] Get environment variables defined in Jenkins configuration

2015-05-21 Thread Carlos Lucas
 It does not works for me.

This is the script:
println myVar

and this is the error:

groovy.lang.MissingPropertyException: No such property: FILE_GITS_OK for class: 
WorkflowScript

I think I need to acces it from environment but I don't know how.



El miércoles, 20 de mayo de 2015, 20:23:34 (UTC+2), Yasir Saleem escribió:
>
> You can get them by simply calling by name like:
>
>  testVar = myVar
>
> Where 'testVar' is var defined in the  flow.groovy (or whatever name you 
> gave) script, and 'myVar' is env or parameters (input or choice etc).
>
> if you don't use 'def' they can be global variable, used inside that your 
> flow.groovy class.
>
>
>
> On Monday, May 18, 2015 at 4:24:25 AM UTC-4, Carlos Lucas wrote:
>>
>> Hi,
>>
>> I have some environment variables defined in Jenkins configuration ( 
>> Manage jenkins >> System configuration >> Global properties ) but I am no 
>> able to get their value on a workflow script.
>>
>> I tried with* System.getenv()["myVar"],* *currentBuild.getEnvironment(null), 
>> env.myVar * and accessing like a normal variable but nothing works. Do 
>> you know how can I do it?
>>
>> Thank you!
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4db888de-9af6-407f-a68b-c4ea646bebea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deleting old builds on nodes

2015-05-21 Thread niraj nandane
Is your node is Dumb slave node ?

On Thursday, May 7, 2015 at 8:16:43 PM UTC+5:30, Dan Sirgey wrote:
>
> Hey all,
>
> I have a node set up to connect through ssh, that I was surprised to find 
> disk space issues on. I just realized that while I have the "discard old 
> builds" option checked, this is not cleaning up build folders on the node. 
> I would prefer not to have to use the workspace cleanup plugin, as I'm 
> still developing the flow and would like to be able to inspect the 
> workspaces. Can anyone give me a hand?
>
> Jenkins ver. 1.596.1
> Master and Slave are both Ubuntu 14.04
>
> -Dan
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ed715392-258d-45a8-81e9-ffdc197e71ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy scripts

2015-05-21 Thread niraj nandane
You can start with using jenkins api first.

On Monday, May 18, 2015 at 2:24:36 PM UTC+5:30, Gilad Baruchian wrote:
>
> I have groovy scripts that work in my jenkins instance.
> I would like to be able to also run them from IntelliJ, but it seems like 
> i need the jenkins jars for the imports to work (for example import 
> hudson.model.*).
>
> 1. How can I get all the Jars I need to run jenkins groovy code?
> 2. Do you know of any good tutorials to learn about using the jenkins 
> libraries ?
>
> Thanks.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d95cd519-e08f-4248-a9e2-77407bea23cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customized contents in Email extension plugin

2015-05-21 Thread niraj nandane
Hi,

Use following :



Where file path is relative to workspace.

Lets say you have file in $WORKSPACE/myfile, now to mail it use :

${FILE,path="myfile"} 

On Wednesday, May 20, 2015 at 1:48:43 PM UTC+5:30, Mohamed Sathack wrote:
>
> Hi,
>
> I have a summary report in the form of text file (say, summary.txt). This 
> fill will be hardly having few lines saying the overall status of my 
> execution. I have to use the files contents in the "contents" section of 
> extended email plugin. Can you please help?
>
> Regards,
> Mohamed Sathack
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/23a9250f-5209-4542-9d52-3e59a9f78e95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run subjobs but disregard the result in the parent job

2015-05-21 Thread Radu Codrin Leterna
This is not exactly what I am trying to accomplish. I need to do the 
following:
1. Have one main job with 5 sub-jobs in a MultiJob Phase
2. If one particular sub-job fails, just ignore that result, run all other 
sub-jobs and DO NOT MARK the main job as failed based on that particular 
sub-job result.

Not sure if Jenkins can do that, even with the help of plugins. I might 
have to modify the sub-job to PASS every time... so it does not mark the 
parent as FAILED.

On Wednesday, May 20, 2015 at 6:58:45 PM UTC+3, Brian Ray wrote:
>
>
> 
> Darnit, pasting my screenshot didn't work. Let me try again:
>
>
>
> On Wednesday, May 20, 2015 at 8:56:42 AM UTC-7, Brian Ray wrote:
>>
>> Assuming you're using the multijob plugin, be sure to set this field to 
>> *Completed* for this subproject (phase) in question:
>>
>>
>>
>> On Wednesday, May 20, 2015 at 8:05:10 AM UTC-7, Radu Codrin Leterna wrote:
>>>
>>> Hello,
>>>
>>> I need to setup a main job that will trigger a couple sub-jobs.
>>> I am using a multijob-phase to trigger the sub-projects. The requirement 
>>> is to ignore the result from *one* of the sub-jobs (whether it fails or 
>>> passes, the parent should just ignore that).
>>>
>>> How can this be accomplished?
>>>
>>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f8d9f496-a803-456e-a5bb-581af0f8c46e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Help on Jenkins build execution

2015-05-21 Thread niraj nandane
Hi,

You can use the poll SCM option in job configuration. Set the poll time as 
per your convenience .

On Thursday, May 21, 2015 at 10:57:12 AM UTC+5:30, Er. Debasish Dutta wrote:
>
> How jenkin will build automatically when ever check in happens to the TFS 
> server. Please help on this.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c176d928-d1c1-4ca7-a137-46a1708ec308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.