diff --git a/Jenkinsfile b/Jenkinsfile index 1266643..0b2383a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,10 +14,10 @@ pipeline { } stage('Build Docker Image') { steps { - script { - // Build the .NET 8 Minimal API image with a build number tag and latest - docker.build("skennen:${env.BUILD_NUMBER}", '-f dotnet8-minimal-api/Dockerfile dotnet8-minimal-api') - } + sh ''' + docker build -t skennen:${BUILD_NUMBER} \ + -f dotnet8-minimal-api/Dockerfile dotnet8-minimal-api + ''' } } stage('Tag & Push to ACR') {