[JIRA] (JENKINS-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-08-08 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated  JENKINS-51255  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 We added a new yamlFile option as of Kubernetes plugin 1.10.0 that does what you're looking for.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Status: 
 Open Fixed but Unreleased  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev assigned an issue to Andrew Bayer  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Assignee: 
 Carlos Sanchez Andrew Bayer  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Issue Type: 
 Bug New Feature  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread kev.carra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin Carrasco edited a comment on  JENKINS-51255  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
 [~oleg_nenashev] I expect to read k8s-podspec.yaml from the repository.    We would like the yaml file to be part of the source code on a separate file. For now we're including the yaml contents in the Jenkinsfile.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Component/s: 
 kubernetes-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread kev.carra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin Carrasco commented on  JENKINS-51255  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
 Oleg Nenashev I expect to read k8s-podspec.yaml from the repository.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer commented on  JENKINS-51255  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
 Oleg Nenashev is correct - we should probably add something to the kubernetes plugin's Declarative agent setup for doing a readTrusted of a YAML file for this sort of use case.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-51255  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
 Not a K8s plugin defect IMHO. In Declarative the workspace is not mapped before creating the first agent, hence readFile() cannot work in this section AFAIK From where do you expect to read it? From master? or from the repo?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-14 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Component/s: 
 pipeline  
 
 
Component/s: 
 pipeline-model-definition-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-51255) Kubernetes plugin declarative pipeline can't use readFile to read yaml file

2018-05-10 Thread kev.carra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin Carrasco created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51255  
 
 
  Kubernetes plugin declarative pipeline can't use readFile to read yaml file   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Carlos Sanchez  
 
 
Components: 
 kubernetes-plugin  
 
 
Created: 
 2018-05-10 22:02  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Kevin Carrasco  
 

  
 
 
 
 

 
 Using the following settings declarative pipeline: 

 

pipeline {
agent {
kubernetes {
cloud 'OpenShift'
label 'jenkins-agent-pod'
yaml readFile('k8s-podspec.yaml')
}
}
... 

   Results in the following error from Jenkins: 

 

Running in Durability level: MAX_SURVIVABILITY
[Pipeline] readFile
Required context class hudson.FilePath is missing
Perhaps you forgot to surround the code with a step that provides this, such as: node
[Pipeline] End of Pipeline