rsyncd-docker/Jenkinsfile
2025-11-05 12:33:28 +01:00

38 lines
935 B
Groovy

pipeline {
agent {
kubernetes {
yaml '''
apiVersion: "v1"
kind: "Pod"
metadata:
spec:
containers:
- command:
- "cat"
image: "docker:dind"
name: "dind"
tty: true
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
'''
retries 2
}
}
stages {
stage('Build Docker image') {
steps {
container('dind') {
docker.build "andreas/rsyncd:${env.BUILD_TAG}"
sh 'docker images'
}
}
}
stage('Tag Docker image') {
steps {
sh 'ls -la'
}
}
}
}