diff --git a/Jenkinsfile b/Jenkinsfile index 6a344a2..8bcde89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,19 +4,16 @@ pipeline { yaml ''' apiVersion: v1 kind: Pod +metadata: + name: my-pod spec: containers: - - name: kubectl image: bitnami/kubectl:latest command: - cat tty: true - volumes: - - name: docker-sock - hostPath: - path: /var/run/docker.sock - + - name: docker image: docker:latest command: @@ -25,6 +22,12 @@ spec: volumeMounts: - name: docker-sock mountPath: /var/run/docker.sock + + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock + ''' } }