Generate pipeline jobs like with job-dsl

2016-02-09 Thread Carlos Lucas
Hi,

Nowadays, we are using a Jenkins with more than 300 different jobs. Most of 
them are generated using jobdsl plugin automatically from a config file.
Now, I would like to migrate some of them from classic projects to pipeline 
projects. 

What is the best way to generate pipeline jobs like jobdls? Any kind of 
templates?

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/764b9495-c2f6-40ad-9e81-190da1c7ba70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins and code analysis

2015-07-13 Thread Carlos Lucas
I forgot to say that my code is on .NET C# and VB

-- 
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/2d24fb7d-7609-41b8-834f-e373f785e965%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins and code analysis

2015-07-13 Thread Carlos Lucas
Hi,

I would like to add an step on muy build that checks the source code for 
style, format and so on. Can you recommend me some tool or platform that 
works well and that can be integrated with jenkins?

I am thinking about SonarQube, but maybe it there is something lighter ( 
sonar needs a DB, web and worker )

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/e20c8b14-34bc-42b2-8923-74325392d583%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: 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.


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

2015-05-18 Thread Carlos Lucas
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/83e3f137-4e8b-436b-a394-078687b22c83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Workflow-plugin] Use Jenkins plugins in Workflow

2015-04-20 Thread Carlos Lucas
Anyone have any idea?

-- 
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/dc4ab0e3-8228-4f54-97d9-d818d5e06ec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to add many jobs in jenkins for all projects at once

2015-04-16 Thread Carlos Lucas
Maybe the JobDSL plugin can helps you ( 
https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin )
With that plugin you can make a script that builds jobs automatically. If 
you have your projects on some scm I think it will be easy for you.

El miércoles, 15 de abril de 2015, 15:01:10 (UTC+2), Fatiha escribió:
>
> Hi , 
>
>   please we have at the moment a lot of projects to add in jenkins, i ask 
> if there is a script or any trick on jenkins that can allow us to do it ? 
>
> thank's 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/9571aaa3-4c8e-43a2-b944-63462e873038%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Workflow-plugin] Use Jenkins plugins in Workflow

2015-04-16 Thread Carlos Lucas
Hi, 
I would like to use some plugins that are not in the compatibility list (
https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md) 
in my workflow job scripts.
Is there any way to do it? Like calling the plugin class or something.

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/7ed1456f-bc38-474f-b8e2-fa9bbba60567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.