21 lines
		
	
	
		
			543 B
		
	
	
	
		
			Groovy
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			543 B
		
	
	
	
		
			Groovy
		
	
	
	
| #!/usr/bin/env groovy
 | |
| 
 | |
| def label = "k8sagent-e2e"
 | |
| def home = "/home/jenkins"
 | |
| def workspace = "${home}/workspace/build-jenkins-operator"
 | |
| def workdir = "${workspace}/src/github.com/jenkinsci/kubernetes-operator/"
 | |
| 
 | |
| podTemplate(label: label,
 | |
|         containers: [
 | |
|                 containerTemplate(name: 'alpine', image: 'alpine:3.11', ttyEnabled: true, command: 'cat'),
 | |
|         ],
 | |
|         ) {
 | |
|     node(label) {
 | |
|         stage('Run shell') {
 | |
|             container('alpine') {
 | |
|                 sh 'echo "hello world"'
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |