diff --git a/Jenkinsfile b/Jenkinsfile index 1663efd..c431b15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,7 +34,9 @@ pipeline { } } stage('Build') { - agent label 'main' + agent { + label 'main' + } steps { script { DOCKER_IMAGE = docker.build("${DOCKER_IMAGE_NAME}") @@ -42,7 +44,9 @@ pipeline { } } stage('Publish') { - agent label 'main' + agent { + label 'main' + } steps { script { docker.withRegistry("", "digital-ocean-ailuridae-registry") {