Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-24 Thread Michael Neale
But it's such sweet pain ;)


OK I have released this for 
now: 
https://wiki.jenkins-ci.org/display/JENKINS/Simple+Build+For+Pipeline+Plugin

On Wednesday, February 24, 2016 at 1:33:27 PM UTC+11, Jesse Glick wrote:
>
> On Sun, Feb 21, 2016 at 5:23 PM, Michael Neale  > wrote: 
> > Actually I  am having some trouble with both locations of the resource, 
> and 
> > I realise now... capitalisation (RAGE FACE). 
>
> Mac users pay the price. :-) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/da86cb18-3cf2-495e-861c-38b518413f15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-23 Thread Jesse Glick
On Sun, Feb 21, 2016 at 5:23 PM, Michael Neale  wrote:
> Actually I  am having some trouble with both locations of the resource, and
> I realise now... capitalisation (RAGE FACE).

Mac users pay the price. :-)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0jyroUwDDqZv_KFUmdFEy%2Bzm07-jDsjD%2B-yQbogCxmAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-21 Thread Michael Neale
Actually I  am having some trouble with both locations of the resource, and 
I realise now... capitalisation (RAGE FACE). 



On Sunday, February 21, 2016 at 2:10:57 AM UTC+11, Baptiste Mathus wrote:
>
> Ok, so typical. Now my mail has just gone away, I think I found the right 
> one: 
> https://github.com/michaelneale/jenkinsfile/blob/master/src/main/resources/SimpleBuild.groovy
>
> So: is 
> https://github.com/michaelneale/jenkinsfile/blob/master/simpleBuild.groovy 
> actually an artefact of the past? :-)
>
> 2016-02-20 16:07 GMT+01:00 Baptiste Mathus 
> :
>
>> Sounds really cool indeed. Clean way to centralize global functions and 
>> so on indeed (apart from the global lib)
>>
>> Just looked at the code, and I must say I'm a bit confused by the 
>> location of the simpleBuild.groovy file. Does it really have to be at the 
>> root of the repo? Or should/could it be under src/main/groovy?
>>
>> I must be maven-tainted, but finding sources at the root made me somehow 
>> uneasy ;)
>>
>> Thanks for the clarification
>>
>> 2016-02-19 3:47 GMT+01:00 Michael Neale > >:
>>
>>> Yes, this is NOT an alternative job type or anything, this is literally 
>>> a DSL that builds on pipeline - just wrapped up in a plugin. 
>>>
>>> The aim is to make pipeline easier to use, not to replace it (it is just 
>>> written pipeline itself)
>>>
>>> So - ideas for better naming for this? 
>>>
>>> On Friday, February 19, 2016 at 6:31:45 AM UTC+11, Jesse Glick wrote:

 On Thu, Feb 18, 2016 at 7:12 AM, Robert Sandell  
 wrote: 
 > This is a pipeline step implementation 

 Actually it is not. It is just a utility function which uses existing 
 steps. 

>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-de...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-dev/ecc2a3d5-b845-47b3-9b01-91bd0e234091%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 Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b6691de6-0085-4382-b7e4-99466fb911cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-20 Thread Baptiste Mathus
Ok, so typical. Now my mail has just gone away, I think I found the right
one:
https://github.com/michaelneale/jenkinsfile/blob/master/src/main/resources/SimpleBuild.groovy

So: is
https://github.com/michaelneale/jenkinsfile/blob/master/simpleBuild.groovy
actually an artefact of the past? :-)

2016-02-20 16:07 GMT+01:00 Baptiste Mathus :

> Sounds really cool indeed. Clean way to centralize global functions and so
> on indeed (apart from the global lib)
>
> Just looked at the code, and I must say I'm a bit confused by the location
> of the simpleBuild.groovy file. Does it really have to be at the root of
> the repo? Or should/could it be under src/main/groovy?
>
> I must be maven-tainted, but finding sources at the root made me somehow
> uneasy ;)
>
> Thanks for the clarification
>
> 2016-02-19 3:47 GMT+01:00 Michael Neale :
>
>> Yes, this is NOT an alternative job type or anything, this is literally a
>> DSL that builds on pipeline - just wrapped up in a plugin.
>>
>> The aim is to make pipeline easier to use, not to replace it (it is just
>> written pipeline itself)
>>
>> So - ideas for better naming for this?
>>
>> On Friday, February 19, 2016 at 6:31:45 AM UTC+11, Jesse Glick wrote:
>>>
>>> On Thu, Feb 18, 2016 at 7:12 AM, Robert Sandell 
>>> wrote:
>>> > This is a pipeline step implementation
>>>
>>> Actually it is not. It is just a utility function which uses existing
>>> steps.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/ecc2a3d5-b845-47b3-9b01-91bd0e234091%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 Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS4ETvO%3Dg6KGpeMbACJX0WSDPYH22hr%3Dy%2B9CvQ33%2BQmJfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-20 Thread Baptiste Mathus
Sounds really cool indeed. Clean way to centralize global functions and so
on indeed (apart from the global lib)

Just looked at the code, and I must say I'm a bit confused by the location
of the simpleBuild.groovy file. Does it really have to be at the root of
the repo? Or should/could it be under src/main/groovy?

I must be maven-tainted, but finding sources at the root made me somehow
uneasy ;)

Thanks for the clarification

2016-02-19 3:47 GMT+01:00 Michael Neale :

> Yes, this is NOT an alternative job type or anything, this is literally a
> DSL that builds on pipeline - just wrapped up in a plugin.
>
> The aim is to make pipeline easier to use, not to replace it (it is just
> written pipeline itself)
>
> So - ideas for better naming for this?
>
> On Friday, February 19, 2016 at 6:31:45 AM UTC+11, Jesse Glick wrote:
>>
>> On Thu, Feb 18, 2016 at 7:12 AM, Robert Sandell 
>> wrote:
>> > This is a pipeline step implementation
>>
>> Actually it is not. It is just a utility function which uses existing
>> steps.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/ecc2a3d5-b845-47b3-9b01-91bd0e234091%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 Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS4wPmrF7Xyiv7C0zPr2S-jfzigKQ0tbm0nxFNF_FV27RA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-18 Thread Michael Neale
Yes, this is NOT an alternative job type or anything, this is literally a 
DSL that builds on pipeline - just wrapped up in a plugin. 

The aim is to make pipeline easier to use, not to replace it (it is just 
written pipeline itself)

So - ideas for better naming for this? 

On Friday, February 19, 2016 at 6:31:45 AM UTC+11, Jesse Glick wrote:
>
> On Thu, Feb 18, 2016 at 7:12 AM, Robert Sandell  > wrote: 
> > This is a pipeline step implementation 
>
> Actually it is not. It is just a utility function which uses existing 
> steps. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/ecc2a3d5-b845-47b3-9b01-91bd0e234091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-18 Thread Jesse Glick
On Thu, Feb 18, 2016 at 7:12 AM, Robert Sandell  wrote:
> This is a pipeline step implementation

Actually it is not. It is just a utility function which uses existing steps.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0vkAdfEFrDk0bKcT2gycKwuBTJTznu%2BxjWu8yZzQb-JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-18 Thread Robert Sandell
Replies inline

/B

On Thu, Feb 18, 2016 at 11:01 AM, domi  wrote:

> This sounds interesting, although I have to admit that the number of DSL
> plugins do get me confused a bit…
> - How does this one relate to the pipeline plugin? hmm, can they work
> together?
>
This is a pipeline step implementation so it can't work without it, like
pipeline-utility-steps-plugin or docker-workflow-plugin.


> - I thought the Jenkinsfile belong to the multi branch plugin?
>
Yea, the naming of the repo and artifactId could use some work, but it does
simplify Jenkinsfile authoring significantly ;)


> …I'm confused… and I’m sure others are too…
>
> ...oh and there is the Job DSL plugin, it has a totally different purpose,
> but I think people will mix up this one into the game too
>
> ..confusing
>
> /Domi
>
>
> On 18 Feb 2016, at 08:58, Michael Neale  wrote:
>
> I mentioned some time back
> 
> a bout the simpleBuild DSL for easy builds.
>
> This let you do things like:
>
> simpleBuild {
>
> docker_image = "golang"
>
>
> env = [
> FOO : 42,
> BAR : "YASS"
> ]
>
>
> before_script = "echo before"
> script = 'echo after $FOO'
>
>
> notifications = [
> email : "mne...@cloudbees.com"
> ]
>
>
> }
>
>
> Well thanks to Andrew Bayer and looking at how GlobalVariable works, this
> is now a plugin:
>
> https://github.com/michaelneale/jenkinsfile
>
> so no messing around with global lib or whitelists (it comes with its
> own).
>
> If people are interested I will fork this over into jenkinsci org and
> possibly do a release (to main repo) so people can easily kick it around
> (also very very interested in feature requests in how to grow it to match
> what people expect).
>
>
> Side effect: Adding a DSL to make a plugin is as easy as 1) writing the
> DSL and 2) creating a class like:
> https://github.com/michaelneale/jenkinsfile/blob/master/src/main/java/org/jenkinsci/plugins/simplebuild/SimpleBuildDSL.java
> and wrapping it up as a plugin. This is pattern I would like to encourage
> as it gives you versioning and easy distribution - and even TESTING of your
> DSL!
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/b4898c98-f01a-4c09-9f85-3db738ca1e8d%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 Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/7B709F07-ECF4-462D-9B73-D6FA36A4DA7E%40fortysix.ch
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3T8R%2BBGWuSe%2B3Yv%2BLMCPNn1miJzyuonrNkZsMSCztgzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-18 Thread domi
This sounds interesting, although I have to admit that the number of DSL 
plugins do get me confused a bit…
- How does this one relate to the pipeline plugin? hmm, can they work together?
- I thought the Jenkinsfile belong to the multi branch plugin?
…I'm confused… and I’m sure others are too…

...oh and there is the Job DSL plugin, it has a totally different purpose, but 
I think people will mix up this one into the game too

..confusing

/Domi


> On 18 Feb 2016, at 08:58, Michael Neale  wrote:
> 
> I mentioned some time back 
> 
>  a bout the simpleBuild DSL for easy builds. 
> 
> This let you do things like: 
> 
> simpleBuild {
> docker_image = "golang"
> 
> env = [
> FOO : 42,
> BAR : "YASS"
> ]
> 
> 
> before_script = "echo before"
> script = 'echo after $FOO'
> 
> 
> notifications = [
> email : "mne...@cloudbees.com"
> ]
> 
> 
> }
> 
> Well thanks to Andrew Bayer and looking at how GlobalVariable works, this is 
> now a plugin: 
> 
> https://github.com/michaelneale/jenkinsfile
> 
> so no messing around with global lib or whitelists (it comes with its own). 
> 
> If people are interested I will fork this over into jenkinsci org and 
> possibly do a release (to main repo) so people can easily kick it around 
> (also very very interested in feature requests in how to grow it to match 
> what people expect). 
> 
> 
> Side effect: Adding a DSL to make a plugin is as easy as 1) writing the DSL 
> and 2) creating a class like: 
> https://github.com/michaelneale/jenkinsfile/blob/master/src/main/java/org/jenkinsci/plugins/simplebuild/SimpleBuildDSL.java
>  and wrapping it up as a plugin. This is pattern I would like to encourage as 
> it gives you versioning and easy distribution - and even TESTING of your DSL!
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-dev+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/b4898c98-f01a-4c09-9f85-3db738ca1e8d%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 Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/7B709F07-ECF4-462D-9B73-D6FA36A4DA7E%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.


[update] SimpleBuild DSL for pipeline (now a plugin)

2016-02-17 Thread Michael Neale
I mentioned some time back 

 
a bout the simpleBuild DSL for easy builds. 

This let you do things like: 

simpleBuild {

docker_image = "golang"


env = [
FOO : 42,
BAR : "YASS"
]


before_script = "echo before"
script = 'echo after $FOO'


notifications = [
email : "mne...@cloudbees.com"
]


}


Well thanks to Andrew Bayer and looking at how GlobalVariable works, this 
is now a plugin: 

https://github.com/michaelneale/jenkinsfile

so no messing around with global lib or whitelists (it comes with its own). 

If people are interested I will fork this over into jenkinsci org and 
possibly do a release (to main repo) so people can easily kick it around 
(also very very interested in feature requests in how to grow it to match 
what people expect). 


Side effect: Adding a DSL to make a plugin is as easy as 1) writing the DSL 
and 2) creating a class 
like: 
https://github.com/michaelneale/jenkinsfile/blob/master/src/main/java/org/jenkinsci/plugins/simplebuild/SimpleBuildDSL.java
 
and wrapping it up as a plugin. This is pattern I would like to encourage 
as it gives you versioning and easy distribution - and even TESTING of your 
DSL!


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b4898c98-f01a-4c09-9f85-3db738ca1e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.