pipeline { agent { docker { reuseNode true image 'maven:3-alpine' label 'my-defined-label' args '-v /tmp:/tmp' registryUrl 'https://myregistry.com/' registryCredentialsId 'myPredefinedCredentialsInJenkins' } } stages { stage('Build') { steps { sh 'make' } } } }