pipeline { agent any options { withFolderProperties() } stages { stage('Build ML Base Image') { steps { script { def img = docker.build("${env.PUSH_REGISTRY}/ml-base:latest", "-f MLBaseDockerfile .") // img.push() } } } } }