Re: Has anyone implemented the one line Jenkinsfile?

2016-05-18 Thread John Chandra
Got it. Thanks a lot Daniel!

On Wednesday, May 18, 2016 at 2:30:21 PM UTC-4, Daniel Beck wrote:
>
>
> > On 18.05.2016, at 20:20, John Chandra <joh...@bu.edu > 
> wrote: 
> > 
> > I wonder how does a Jenkinsfile know where to look for that function? Is 
> there any other configuration I should add? 
> > 
>
> It's called the global library: 
>
>
> https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md#pipeline-global-library
>  
>
> The idea is that Jenkins is hosting a Git repo, and functions defined 
> there are available for your pipelines on the same Jenkins. 
>
>

-- 
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/cff68439-cbd1-4a98-8f2b-335a03e41978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline script for Build Trigger

2016-05-18 Thread John Chandra
I see. Thanks, Michael!

On Tuesday, May 17, 2016 at 11:37:27 PM UTC-4, Michael Kobit wrote:
>
> Based on what I can see on that issue, I believe that is the open issue 
> you should follow.
>
> On Tue, May 17, 2016, 10:37 AM John Chandra <joh...@bu.edu > 
> wrote:
>
>> Hi Michael, Thanks for your reference. So that means that there is an 
>> open issue regarding controlling the build trigger on Jenkins 2.0. Am I 
>> correct?
>>
>>
>> On Tuesday, May 17, 2016 at 10:02:31 AM UTC-4, Michael Kobit wrote:
>>>
>>> I think https://issues.jenkins-ci.org/browse/JENKINS-34005 is what you 
>>> are looking for.
>>>
>>> On Monday, May 16, 2016 at 4:54:13 PM UTC-5, John Chandra wrote:
>>>>
>>>> Hi All,
>>>>
>>>> Is there any way to configure a build trigger using pipeline script in 
>>>> Jenkinsfile? We still want to trigger the build when a change is pushed to 
>>>> GitHub. Is that still possible using Jenkinsfile in Jenkins 2.0? I've been 
>>>> searching around but I couldn't find a way to get this done.
>>>>
>>>> John
>>>>
>>> -- 
>> 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/95ab38d2-fbcc-4bad-bb0f-01acf7306d09%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/95ab38d2-fbcc-4bad-bb0f-01acf7306d09%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/4abef13c-4c5d-4098-92fb-d97d11c09424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Has anyone implemented the one line Jenkinsfile?

2016-05-18 Thread John Chandra
Hello all,

Has anyone tried to implement the one line Jenkinsfile according to this 
example:

*One line Jenkinsfile*
https://github.com/jenkins-inc/securitay/blob/dev/Jenkinsfile

*and it is calling a function defined here:*
https://github.com/jenkins-inc/release-engineering/blob/master/vars/microService.groovy

I wonder how does a Jenkinsfile know where to look for that function? Is 
there any other configuration I should add?

John

-- 
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/d34324c8-1ae0-4c28-947a-92210d8ec4d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline script for Build Trigger

2016-05-17 Thread John Chandra
Hi Michael, Thanks for your reference. So that means that there is an open 
issue regarding controlling the build trigger on Jenkins 2.0. Am I correct?

On Tuesday, May 17, 2016 at 10:02:31 AM UTC-4, Michael Kobit wrote:
>
> I think https://issues.jenkins-ci.org/browse/JENKINS-34005 is what you 
> are looking for.
>
> On Monday, May 16, 2016 at 4:54:13 PM UTC-5, John Chandra wrote:
>>
>> Hi All,
>>
>> Is there any way to configure a build trigger using pipeline script in 
>> Jenkinsfile? We still want to trigger the build when a change is pushed to 
>> GitHub. Is that still possible using Jenkinsfile in Jenkins 2.0? I've been 
>> searching around but I couldn't find a way to get this done.
>>
>> John
>>
>

-- 
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/95ab38d2-fbcc-4bad-bb0f-01acf7306d09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline script for Build Trigger

2016-05-17 Thread John Chandra

Hi Craig, thanks for your response. That is not exactly what I was looking 
for. When we create a pipeline, there are some options available for Build 
Triggers. The problem is I can't find a way to set the trigger I need 
through Pipeline script like the way I set the Job Properties (e.g. This 
project is parameterized, etc). If I can do this, then I can put the 
commands in a Jenkinsfile on GitHub and let the GitHub organization scan 
control the build job creation.

On Tuesday, May 17, 2016 at 12:29:10 AM UTC-4, Craig Rodrigues wrote:
>
> Did you try doing this:
>
> https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-TriggerabuildwhenachangeispushedtoGitHub
>
>
> On Mon, May 16, 2016 at 2:54 PM, John Chandra <joh...@bu.edu 
> > wrote:
>
>> Hi All,
>>
>> Is there any way to configure a build trigger using pipeline script in 
>> Jenkinsfile? We still want to trigger the build when a change is pushed to 
>> GitHub. Is that still possible using Jenkinsfile in Jenkins 2.0? I've been 
>> searching around but I couldn't find a way to get this done.
>>
>>

-- 
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/0054b9a3-123f-4000-9f0d-47f4508a0f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline script for Build Trigger

2016-05-16 Thread John Chandra
Hi All,

Is there any way to configure a build trigger using pipeline script in 
Jenkinsfile? We still want to trigger the build when a change is pushed to 
GitHub. Is that still possible using Jenkinsfile in Jenkins 2.0? I've been 
searching around but I couldn't find a way to get this done.

John

-- 
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/0dfaa21a-b182-44b8-931e-547ed1ac86fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.