[JIRA] (JENKINS-55299) Read pod template yaml from library resource
Title: Message Title Arnaud Bourree created an issue Jenkins / JENKINS-55299 Read pod template yaml from library resource Issue Type: Bug Assignee: Carlos Sanchez Components: kubernetes-plugin Created: 2018-12-21 16:52 Environment: Jenkins 2.150.1 Kubernetes::Pipeline::DevOps Steps 1.5 Kubernetes::Pipeline::Kubernetes Steps 1.5 Kubernetes::Plugin 1.14.0 Labels: kubernetes-plugin Priority: Minor Reporter: Arnaud Bourree I'd like to move pod definition from pipeline to a file resource in a shared library. My pipeline is like: pipeline { agent none stages { stage('step-in-kubernetes') { agent { kubernetes { label 'kube' yamlFile libraryResource('myPod.yaml') } } stages { stage('Checkout') { steps { checkout([$class: 'MercurialSCM', clean: true, source: 'https://acme.com/hg/myproject']) } } } } } } I put 'myPod.yaml' in resources folder of my library. I get an error saying that HG is not installed. But:
[JIRA] (JENKINS-55299) Read pod template yaml from library resource
Title: Message Title Arnaud Bourree commented on JENKINS-55299 Re: Read pod template yaml from library resource Issue $JENKINS-52259 adds yamlFile attribute to kubernetes agent Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55299) Read pod template yaml from library resource
Title: Message Title Alex Zeleznikov commented on JENKINS-55299 Re: Read pod template yaml from library resource "libraryResource" returns a string, not file, you can load pod templates from resource files this like so: pipeline { agent { kubernetes { label "Jenkins-${env.JOB_NAME}" yaml libraryResource('pod_templates/kube_agent.yaml') } } } Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55299) Read pod template yaml from library resource
Title: Message Title Arnaud Bourree commented on JENKINS-55299 Re: Read pod template yaml from library resource Your right, I should used yaml and not yamlFile because that is libraryResource which reads from file, not kubernetes plugin. I'll close the issue Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55299) Read pod template yaml from library resource
Title: Message Title Arnaud Bourree closed an issue as Not A Defect libraryResource read from file, we should use yaml and not yamlFile Jenkins / JENKINS-55299 Read pod template yaml from library resource Change By: Arnaud Bourree Status: Open Closed Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.