Jenkinsfile aktualisiert

This commit is contained in:
dresi 2025-11-04 14:22:34 +01:00
parent b115c9a011
commit 946e42c35b

29
Jenkinsfile vendored
View File

@ -1,9 +1,32 @@
pipeline { pipeline {
agent { docker { image 'maven:3.9.11-eclipse-temurin-21-alpine' } } agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: docker
image: docker:latest
command:
- cat
tty: true
'''
}
}
stages { stages {
stage('build') { stage('Docker test') {
steps { steps {
sh 'mvn --version' container('docker') {
sh 'docker --version'
}
}
}
stage('git test') {
steps {
container('docker') {
sh 'git --version'
}
} }
} }
} }