podTemplate(yaml: """
kind: Pod
spec:
  containers:
  - name: kaniko
    image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
    imagePullPolicy: Always
    command:
    - /busybox/cat
    tty: true
"""
  ) {

    node(POD_LABEL) {
        stage('Build') {
            git url: 'https://gyulai.cloud/git/bme/covidok-backend.git',
			    credentialsId: '1b1c30a0-590d-41d4-b775-bdb90e837bc8'
            container('kaniko') {
                stage('Build and publish dev Docker image') {
                    sh '/kaniko/executor -f covidok-backend/CoviDok/Dockerfile -c `pwd` --destination=docker.local/bme/covidok'
                }
            }
        }
    }
}