Re: Understanding the pipeline better

2016-12-02 Thread terkaly
Thanks, Christoph, for demystifying some of my gaps.

On Friday, December 2, 2016 at 12:04:13 AM UTC-8, Christoph Nenning wrote:
>
> Hi, 
>
>
> > where would I store the Python script 
> > files so that the pipeline portal could access them? 
> > Would they be part of the git repository when I do my pull in the 
> > scripts would become available and that manner? 
>
> Yes, you put all of your code (including Jenkinsfile) in a git repository. 
>
>
> > Is Jenkins stateless such that I have to download everything I want 
> > to work with? 
>
> Your build jobs must checkout all the code your build needs. If you have 
> just a single Jenkins instance it usually keeps the workspace so on next 
> run the files are still present (this can be configured). 
>
>
> Note that Jenkins keeps track of repository URLs your build uses. If you 
> checkout additonal SCM repositories in your Jenkinsfile, Jenkins will 
> remember that. 
>
>
>
> Regards, 
> Christoph 
>
>
>
>
> > From: ter...@gmail.com  
> > To: Jenkins Users <jenkins...@googlegroups.com >, 
> > Date: 02.12.2016 06:10 
> > Subject: Understanding the pipeline better 
> > Sent by: jenkins...@googlegroups.com  
> > 
> > I understand that the pipeline approach is the new modern approach 
> > when working with Jenkins. 
> > 
> > I'm having a difficult time learning about how to use it exactly in 
> > the context of Python, Docker, Jenkins. 
> > 
> > I've got Gradle, docker, Python to execute from within the pipeline 
> > window through proper installations of those products. So I am good 
> there. 
> > 
> > I got the docker plug in to work and it has a bunch of methods to do
> > the various build, run, pull commands. 
> > 
> > Here are some newbie questions. Apologies. 
> > 
> > If I want to write most of my code in Python because I want cross 
> > compatibility with Windows, where would I store the Python script 
> > files so that the pipeline portal could access them? 
> > Would they be part of the git repository when I do my pull in the 
> > scripts would become available and that manner? 
> > Is Jenkins stateless such that I have to download everything I want 
> > to work with? 
> > 
> > I would love to see an end to end tutorial that shows me how to 
> > trigger a docker build locally after code check in and then run unit
> > tests on that locally built image using Python. 
> > . 
> > Any help is much appreciated. 
> > 
> > -- 
> > 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/6c08441c-20eb-4ae1-a6b9-b4c349a9fa2d%
> > 40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
>
> This Email was scanned by Sophos Anti Virus
>

-- 
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/3728da93-e12e-4dc1-b5ce-a13420100e56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Understanding the pipeline better

2016-12-02 Thread Christoph Nenning
Hi,


> where would I store the Python script 
> files so that the pipeline portal could access them? 
> Would they be part of the git repository when I do my pull in the 
> scripts would become available and that manner?

Yes, you put all of your code (including Jenkinsfile) in a git repository.


> Is Jenkins stateless such that I have to download everything I want 
> to work with?

Your build jobs must checkout all the code your build needs. If you have 
just a single Jenkins instance it usually keeps the workspace so on next 
run the files are still present (this can be configured).


Note that Jenkins keeps track of repository URLs your build uses. If you 
checkout additonal SCM repositories in your Jenkinsfile, Jenkins will 
remember that.



Regards,
Christoph




> From: terk...@gmail.com
> To: Jenkins Users <jenkinsci-users@googlegroups.com>, 
> Date: 02.12.2016 06:10
> Subject: Understanding the pipeline better
> Sent by: jenkinsci-users@googlegroups.com
> 
> I understand that the pipeline approach is the new modern approach 
> when working with Jenkins.
> 
> I'm having a difficult time learning about how to use it exactly in 
> the context of Python, Docker, Jenkins.
> 
> I've got Gradle, docker, Python to execute from within the pipeline 
> window through proper installations of those products. So I am good 
there.
> 
> I got the docker plug in to work and it has a bunch of methods to do
> the various build, run, pull commands.
> 
> Here are some newbie questions. Apologies.
> 
> If I want to write most of my code in Python because I want cross 
> compatibility with Windows, where would I store the Python script 
> files so that the pipeline portal could access them? 
> Would they be part of the git repository when I do my pull in the 
> scripts would become available and that manner?
> Is Jenkins stateless such that I have to download everything I want 
> to work with?
> 
> I would love to see an end to end tutorial that shows me how to 
> trigger a docker build locally after code check in and then run unit
> tests on that locally built image using Python.
> .
> Any help is much appreciated.
> 
> -- 
> 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/6c08441c-20eb-4ae1-a6b9-b4c349a9fa2d%
> 40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

This Email was scanned by Sophos Anti Virus

-- 
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/OF8DB2E8BF.61F6605E-ONC125807D.002B60A6-C125807D.002C4630%40lex-com.net.
For more options, visit https://groups.google.com/d/optout.


Understanding the pipeline better

2016-12-01 Thread terkaly
I understand that the pipeline approach is the new modern approach when 
working with Jenkins.

I'm having a difficult time learning about how to use it exactly in the 
context of Python, Docker, Jenkins.

I've got Gradle, docker, Python to execute from within the pipeline window 
through proper installations of those products. So I am good there.

I got the docker plug in to work and it has a bunch of methods to do the 
various build, run, pull commands.

Here are some newbie questions. Apologies.

If I want to write most of my code in Python because I want cross 
compatibility with Windows, where would I store the Python script files so 
that the pipeline portal could access them? 
Would they be part of the git repository when I do my pull in the scripts 
would become available and that manner?
Is Jenkins stateless such that I have to download everything I want to work 
with?

I would love to see an end to end tutorial that shows me how to trigger a 
docker build locally after code check in and then run unit tests on that 
locally built image using Python.
.
Any help is much appreciated.

-- 
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/6c08441c-20eb-4ae1-a6b9-b4c349a9fa2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.