k8s plugin

classic Classic list List threaded Threaded
5 messages Options
YD
Reply | Threaded
Open this post in threaded view
|

k8s plugin

YD
Hi all 

in kubernetes plugin i want to use yaml that i managed in my git server (public repo) 

does something like that should work ?

pipeline {
  agent  {
    kubernetes
      {
     yamlFile  '<my git server>/someyaml.yaml'
    }
  }

if not what are my options for using yamlFile method 

thanks 
Yair

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: k8s plugin

Carlos Sanchez
No, It has to live in the same repo 

On Mon, Dec 2, 2019, 16:39 YD <[hidden email]> wrote:
Hi all 

in kubernetes plugin i want to use yaml that i managed in my git server (public repo) 

does something like that should work ?

pipeline {
  agent  {
    kubernetes
      {
     yamlFile  '<my git server>/someyaml.yaml'
    }
  }

if not what are my options for using yamlFile method 

thanks 
Yair

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6PTmC6R4sZ%3DeKrs-6mL9LExPb6-SaO9US9uRApbWVS5Kg%40mail.gmail.com.
YD
Reply | Threaded
Open this post in threaded view
|

Re: k8s plugin

YD
thanks Carlos , it did work fine when i copy the file (someyaml.yaml) to the root  of the repo 
can i put the file in some folder (same repo) and use something like below
pipeline {
  agent  {
    kubernetes
    {  
     yamlFile  '/k8s/someyaml.yaml'
    }
  }

On Monday, December 2, 2019 at 6:16:03 PM UTC+2, Carlos Sanchez wrote:
No, It has to live in the same repo 

On Mon, Dec 2, 2019, 16:39 YD <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="S5thSFj6AQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">yairdav...@...> wrote:
Hi all 

in kubernetes plugin i want to use yaml that i managed in my git server (public repo) 

does something like that should work ?

pipeline {
  agent  {
    kubernetes
      {
     yamlFile  '<my git server>/someyaml.yaml'
    }
  }

if not what are my options for using yamlFile method 

thanks 
Yair

--
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 <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="S5thSFj6AQAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0834c862-095b-4828-ac9b-76cf6d87ecde%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: k8s plugin

Carlos Sanchez
Yes, but

     yamlFile  './k8s/someyaml.yaml'

On Tue, Dec 3, 2019 at 11:41 AM YD <[hidden email]> wrote:
thanks Carlos , it did work fine when i copy the file (someyaml.yaml) to the root  of the repo 
can i put the file in some folder (same repo) and use something like below
pipeline {
  agent  {
    kubernetes
    {  
     yamlFile  '/k8s/someyaml.yaml'
    }
  }

On Monday, December 2, 2019 at 6:16:03 PM UTC+2, Carlos Sanchez wrote:
No, It has to live in the same repo 

On Mon, Dec 2, 2019, 16:39 YD <[hidden email]> wrote:
Hi all 

in kubernetes plugin i want to use yaml that i managed in my git server (public repo) 

does something like that should work ?

pipeline {
  agent  {
    kubernetes
      {
     yamlFile  '<my git server>/someyaml.yaml'
    }
  }

if not what are my options for using yamlFile method 

thanks 
Yair

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0834c862-095b-4828-ac9b-76cf6d87ecde%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OWX-Pbo_z10uMMFgx%2BPKX%2BY9yjNN_O9%3D%2BENN0iy3HuMg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: k8s plugin

David Karlsen
In reply to this post by Carlos Sanchez
It would be super useful agent and templates could come from workflow libraries so that they could be shared 

man. 2. des. 2019, 17:16 skrev Carlos Sanchez <[hidden email]>:
No, It has to live in the same repo 

On Mon, Dec 2, 2019, 16:39 YD <[hidden email]> wrote:
Hi all 

in kubernetes plugin i want to use yaml that i managed in my git server (public repo) 

does something like that should work ?

pipeline {
  agent  {
    kubernetes
      {
     yamlFile  '<my git server>/someyaml.yaml'
    }
  }

if not what are my options for using yamlFile method 

thanks 
Yair

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6PTmC6R4sZ%3DeKrs-6mL9LExPb6-SaO9US9uRApbWVS5Kg%40mail.gmail.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAGO7Ob1oCL-LLQBzvx%2B9GZkXQgjxfchn2BxTEFGmEws66tBT3g%40mail.gmail.com.