Files
jenkins-casc/Jenkinsfile
T
matthias a7a3a59ded
kaniko-test/pipeline/head This commit looks good
Jenkinsfile aktualisiert
2025-03-11 00:22:45 +00:00

38 lines
694 B
Groovy

pipeline {
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
metadata:
labels:
some-label: some-label-value
spec:
containers:
- name: maven
image: maven:3.9.9-eclipse-temurin-17
command:
- cat
tty: true
- name: busybox
image: busybox
command:
- cat
tty: true
'''
retries 2
}
}
stages {
stage('Run maven') {
steps {
container('maven') {
sh 'mvn -version'
}
container('busybox') {
sh 'ls -lha'
}
}
}
}
}