[JIRA] (JENKINS-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez commented on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Please ask questions in jenkins-users mailing list, jira is just for tracking bugs  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez closed an issue as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55904  
 
 
  Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
Change By: 
 Carlos Sanchez  
 
 
Status: 
 In Progress 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.


[JIRA] (JENKINS-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati edited a comment on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Hi [~csanchez],cool,Thats a pod template that is used to create a pod in k8s but how can i configure over jenkinsfile DSL that creates a pod for my builds.I also seen that a option called yaml in k8s pod template under Agent in jenkins but it is showing the error in jenkins!screenshot-1.png|thumbnail! here is my jenkinsfile{code:java}pipeline {  agent {kubernetes {label 'jenkins-demo'containerTemplate {name 'dind-jdk8-maven3'image 'eu.gcr.io/jenkins-demo/dind-jdk8-maven3:v4'ttyEnabled truecommand 'cat'} }volumes { type persistentVolumeClaim mountPath '/home/jenkins/workspace' claimName 'jenkins-workspace-pv' readOnly false}   } environment {CONTAINER_ENV_VAR = 'container-env-var-value'  }  stages {stage('Run maven') {  steps {sh 'set'sh 'test -f /usr/bin/mvn' // checking backwards compatibilitysh "echo OUTSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}"container('maven') {  sh 'echo INSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}'  sh 'mvn -version'}  }} stage('Run maven with a different shell') {  steps {container(name: 'maven', shell: '/bin/bash') {   sh 'mvn -version'}  }   }  }}{code}  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati commented on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Hi Carlos Sanchez, cool, Thats a pod template that is used to create a pod in k8s but how can i configure over jenkinsfile DSL that creates a pod for my builds. I also seen that a option called yaml in k8s pod template under Agent in jenkins but it is showing the error in jenkins 

 

 !screenshot-1.png|thumbnail! 
 

 here is my jenkinsfile 

 

pipeline {
  agent {
kubernetes {
label 'jenkins-demo'
containerTemplate {
name 'dind-jdk8-maven3'
image 'eu.gcr.io/jenkins-demo/dind-jdk8-maven3:v4'
ttyEnabled true
command 'cat'
}
 
}
volumes {
  type persistentVolumeClaim
  mountPath '/home/jenkins/workspace'
  claimName 'jenkins-workspace-pv'
  readOnly false
} 
  }   
  environment {
CONTAINER_ENV_VAR = 'container-env-var-value'
  }
  stages {
stage('Run maven') {
  steps {
sh 'set'
sh 'test -f /usr/bin/mvn' // checking backwards compatibility
sh "echo OUTSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}"
container('maven') {
  sh 'echo INSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}'
  sh 'mvn -version'
}
  }
}
	stage('Run maven with a different shell') {
		steps {
		  container(name: 'maven', shell: '/bin/bash') {
			sh 'mvn -version'
		  }
		}
	  }
  }
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

  

[JIRA] (JENKINS-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati edited a comment on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Hi [~csanchez],cool,Thats a pod template that is used to create a pod in k8s but how can i configure over jenkinsfile DSL that creates a pod for my builds.I also seen that a option called yaml in k8s pod template under Agent in jenkins but it is showing the error in jenkins {code:java}  !screenshot-1.png|thumbnail!  {code}   here is my jenkinsfile{code:java}pipeline {  agent {kubernetes {label 'jenkins-demo'containerTemplate {name 'dind-jdk8-maven3'image 'eu.gcr.io/jenkins-demo/dind-jdk8-maven3:v4'ttyEnabled truecommand 'cat'} }volumes { type persistentVolumeClaim mountPath '/home/jenkins/workspace' claimName 'jenkins-workspace-pv' readOnly false}   } environment {CONTAINER_ENV_VAR = 'container-env-var-value'  }  stages {stage('Run maven') {  steps {sh 'set'sh 'test -f /usr/bin/mvn' // checking backwards compatibilitysh "echo OUTSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}"container('maven') {  sh 'echo INSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}'  sh 'mvn -version'}  }} stage('Run maven with a different shell') {  steps {container(name: 'maven', shell: '/bin/bash') {   sh 'mvn -version'}  }   }  }}{code}  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55904  
 
 
  Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
Change By: 
 venkatesh kristipati  
 
 
Attachment: 
 screenshot-1.png  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55904  
 
 
  Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
Change By: 
 Carlos Sanchez  
 
 
Priority: 
 Critical Minor  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez commented on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-pod  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati edited a comment on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Hi  Carlos Sanchez  [~csanchez] ,Thanks for the replay.Can you please provide a sample example of pod template with persistance volume, so that i can reduce my brain storming over jenkins pod template.  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati edited a comment on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Hi Carlos Sanchez,Thanks for the replay. Can you please provide a sample example of pod template with persistance volume, so that i can reduce my brain storming over jenkins pod template.  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati commented on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 Can you please provide a sample example of pod template with persistance volume, so that i can reduce my brain storming over jenkins pod template.  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-02-01 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez commented on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
 you can use the yaml format to do anything that the k8s api allows  
 

  
 
 
 
 

 
 
 

 
 
 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-55904) Kubernetes pod template with persistance volume

2019-01-31 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55904  
 
 
  Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
Change By: 
 venkatesh kristipati  
 

  
 
 
 
 

 
 Hi,we are using jenkins on k8s and running slave on pods using pod template.we want to use DSL language for jenkins and trying to do with volume option with agent on k8s. like below example {code:java}pipeline {  agent {kubernetes {label 'jenkins-demo'containerTemplate {name 'dind-jdk8-maven3'image 'eu.gcr.io/jenkins-demo/dind-jdk8-maven3:v4'ttyEnabled truecommand 'cat'} }volumes { type persistentVolumeClaim mountPath '/home/jenkins/workspace' claimName 'jenkins-workspace-pv' readOnly false}   } }{code}Is there any possibility to like this or we can just do it with another approach. If we want to write in another format please post an example for this .  
 

  
 
 
 
 

 
 
 

 
 
 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+unsu

[JIRA] (JENKINS-55904) Kubernetes pod template with persistance volume

2019-01-31 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-55904  
 
 
  Kubernetes pod template with persistance volume   
 

  
 
 
 
 

 
Issue Type: 
  Task  
 
 
Assignee: 
 Carlos Sanchez  
 
 
Components: 
 kubernetes-plugin  
 
 
Created: 
 2019-02-01 05:05  
 
 
Environment: 
 K8s  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 venkatesh kristipati  
 

  
 
 
 
 

 
 Hi, we are using jenkins on k8s and running slave on pods using pod template.we want to use DSL language for jenkins and trying to do with volume option with agent on k8s. like below example   

 

pipeline {
  agent {
kubernetes {
label 'jenkins-demo'
containerTemplate {
name 'dind-jdk8-maven3'
image 'eu.gcr.io/jenkins-demo/dind-jdk8-maven3:v4'
ttyEnabled true
command 'cat'
}
 
}
volumes {
  type persistentVolumeClaim
  mountPath '/home/jenkins/workspace'
  claimName 'jenkins-workspace-pv'
  readOnly false
} 
  }   
  -
---
}
 

 Is there any possibility to like this or we can just do it with another approach.  
 

  
 
 
 
 
  

[JIRA] (JENKINS-55904) Kubernetes pod template with persistance volume

2019-01-31 Thread venkat.kristip...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 venkatesh kristipati started work on  JENKINS-55904  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 venkatesh kristipati  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 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.