pipeline { agent { node{ label 'jnlp-slave' } } stages { stage('巡检 web ......') { steps { buildName "#${BUILD_NUMBER} ~/smart-city/${JOB_NAME}:${IMAGE_VERSION}" buildDescription "registry.anxinyun.cn/smart-city/${JOB_NAME}:${IMAGE_VERSION}" sh 'nerdctl build -t registry.anxinyun.cn/smart-city/${JOB_NAME}:${IMAGE_VERSION} ./web' sh 'nerdctl push registry.anxinyun.cn/smart-city/${JOB_NAME}:${IMAGE_VERSION}' } } } }