k8s plugin

13 views
Skip to first unread message

YD

unread,
Dec 2, 2019, 10:39:32 AM12/2/19
to Jenkins Users
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

Carlos Sanchez

unread,
Dec 2, 2019, 11:16:03 AM12/2/19
to Jenkins Users
No, It has to live in the same repo 

--
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/fa6504d9-6371-4b20-a5f0-a8a8448896b2%40googlegroups.com.

YD

unread,
Dec 3, 2019, 6:41:34 AM12/3/19
to Jenkins Users
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 <yairdav...@gmail.com> 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 jenkins...@googlegroups.com.

Carlos Sanchez

unread,
Dec 3, 2019, 7:25:20 AM12/3/19
to Jenkins Users
Yes, but

     yamlFile  './k8s/someyaml.yaml'

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/0834c862-095b-4828-ac9b-76cf6d87ecde%40googlegroups.com.

David Karlsen

unread,
Dec 3, 2019, 9:33:02 AM12/3/19
to Jenkins Users
It would be super useful agent and templates could come from workflow libraries so that they could be shared 

Reply all
Reply to author
Forward
0 new messages