Re: Development environment for Pipeline (aka workflow)

2016-03-15 Thread Nicolas Geraud
I use intellij to write my groovy script

I test my script with a local jenkins running on my laptop. I configure a 
workflow job that clone my local git repository.

Le mardi 2 février 2016 23:14:54 UTC+1, Tom Kierzkowski a écrit :
>
> Hello!  I'll try to break out the question in different parts.
>
>
>- What IDE development setup are you using to 
>create/configure/maintain your Pipeline scripts?
>- How do you test your scripts within your IDE/development setup?
>- Any specific resources for setting up a development environment for 
>IntelliJ IDEA (Not married to it, but has more features than Vim :))
>
> As for my current development setup, I've been working within Vim on our 
> Master server and pushing up changes to our Stash/Bitbucket Server 
> repository.  I'm hoping to scale up/improve the process and have more 
> options for code completion, testing, etc for new users to get acclimated 
> and figured I'd reach out to everyone!
>
> Thank you all 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/aca0a319-3633-4823-8b2d-2dd8455a2f98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Development environment for Pipeline (aka workflow)

2016-03-11 Thread Martin d'Anjou
On Tuesday, February 2, 2016 at 5:14:54 PM UTC-5, Tom Kierzkowski wrote:
>
>
>- How do you test your scripts within your IDE/development setup?
>
>
>  I do not use and IDE, but I was shown these two plugins which show a way 
of testing pipeline scripts:

   - https://github.com/jenkinsci/simple-build-for-pipeline-plugin
   - https://github.com/jenkinsci/simple-travis-runner-plugin

Both require you to implement your pipeline code as a Jenkins plugin, which 
is the only way I have found to really test pipeline code. In fact they go 
one step further, it's almost like they let you define your own DSL, on top 
of the pipeline DSL.

With the simple-build-for-pipeline-plugin, you can access the env and the 
build parameters from the simpleBuild {} closure by using "this.env" and 
"this.PARAM", e.g. simpleBuild { var = this.PARAM }. Tooks me a while to 
figure this one out.

Martin

-- 
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/40e6aae2-02ae-4d8e-a1b9-ea7406f101e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Development environment for Pipeline (aka workflow)

2016-02-03 Thread Baptiste Mathus
Roughly does like Craig, but using intellij instead of bum.

As I associated the Jenkinsfile with groovy type it's helping a bit for
completion or to find (basic, since I've not added any pipeline related
plugins in the classpath) errors/typos.

-- Baptiste
Le 3 févr. 2016 11:03 AM, "Craig Rodrigues"  a écrit :

> Hi,
>
> It may not be the best or most elegant, but this is what I do:
>
> (1)  I use vim to edit the script.
>
> (2)  For testing, I create a pipeline job, paste the script into the*
> Pipeline script *entry field, and run the job.
>
> (3)  When I am done, I check the script into git, and reconfigure the job
> to use *Pipeline script from SCM*.
>
> (4)  I often have to re-run the script multiple times, and approve
> functions in *In-process Script Approval*
>do to the security sandbox.
> --
> Craig
>
>
>
> On Tue, Feb 2, 2016 at 2:14 PM, Tom Kierzkowski <
> thomas.kierzkow...@gmail.com> wrote:
>
> Hello!  I'll try to break out the question in different parts.
>>
>>
>>- What IDE development setup are you using to
>>create/configure/maintain your Pipeline scripts?
>>- How do you test your scripts within your IDE/development setup?
>>- Any specific resources for setting up a development environment for
>>IntelliJ IDEA (Not married to it, but has more features than Vim :))
>>
>>
>> --
> 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/CAG%3DrPVf3OXJ16aR4b-f6kvLu5ZnuLQQ5-rzpLDyMaiQeL%3DdUTw%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/CANWgJS5d78tNUcZHvMVXTGiqsn_GUSNtba05q5pcHzAjDw3iLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Development environment for Pipeline (aka workflow)

2016-02-03 Thread Tom Kierzkowski
Thank you both for your suggestions!

On Wednesday, February 3, 2016 at 11:22:14 AM UTC-5, Baptiste Mathus wrote:
>
> Roughly does like Craig, but using intellij instead of bum. 
>
> As I associated the Jenkinsfile with groovy type it's helping a bit for 
> completion or to find (basic, since I've not added any pipeline related 
> plugins in the classpath) errors/typos.
>
> -- Baptiste
> Le 3 févr. 2016 11:03 AM, "Craig Rodrigues"  > a écrit :
>
>> Hi,
>>
>> It may not be the best or most elegant, but this is what I do:
>>
>> (1)  I use vim to edit the script.
>>
>> (2)  For testing, I create a pipeline job, paste the script into the* 
>> Pipeline script *entry field, and run the job.
>>
>> (3)  When I am done, I check the script into git, and reconfigure the job 
>> to use *Pipeline script from SCM*.
>>
>> (4)  I often have to re-run the script multiple times, and approve 
>> functions in *In-process Script Approval*
>>do to the security sandbox.
>> --
>> Craig
>>
>>
>>
>> On Tue, Feb 2, 2016 at 2:14 PM, Tom Kierzkowski > > wrote:
>>
>> Hello!  I'll try to break out the question in different parts.
>>>
>>>
>>>- What IDE development setup are you using to 
>>>create/configure/maintain your Pipeline scripts?
>>>- How do you test your scripts within your IDE/development setup?
>>>- Any specific resources for setting up a development environment 
>>>for IntelliJ IDEA (Not married to it, but has more features than Vim :))
>>>
>>>
>>> -- 
>> 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/CAG%3DrPVf3OXJ16aR4b-f6kvLu5ZnuLQQ5-rzpLDyMaiQeL%3DdUTw%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/ee8d5959-28ab-4fdd-9878-f40e7a642cbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Development environment for Pipeline (aka workflow)

2016-02-02 Thread Tom Kierzkowski
Hello!  I'll try to break out the question in different parts.


   - What IDE development setup are you using to create/configure/maintain 
   your Pipeline scripts?
   - How do you test your scripts within your IDE/development setup?
   - Any specific resources for setting up a development environment for 
   IntelliJ IDEA (Not married to it, but has more features than Vim :))

As for my current development setup, I've been working within Vim on our 
Master server and pushing up changes to our Stash/Bitbucket Server 
repository.  I'm hoping to scale up/improve the process and have more 
options for code completion, testing, etc for new users to get acclimated 
and figured I'd reach out to everyone!

Thank you all 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/fafb196a-cb19-4715-af8f-dd01b5e83cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.