From 734368df68d980c7156ac10e94ef124225e21cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20G=C3=B3rzy=C5=84ski?= Date: Thu, 3 Dec 2020 17:26:07 +0100 Subject: [PATCH] Test new config --- Jenkinsfile | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e8bae64..9fff4f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,32 @@ +//pipeline { +// agent any +// stages { +// stage('Build image') { +// steps { +// echo "Building docker image" +// script { +// dir('SessionCompanion/SessionCompanion'){ +// def customImage = docker.build("session-companion:${env.BUILD_ID}") +// //customImage.withRun('-p 5050:5050') +// } +// } +// } +// } +// stage('Delete image') { +// steps { +// sh "docker rmi session-companion:${env.BUILD_ID}" +// } +// } +// } +//} pipeline { - agent any - stages { - stage('Build image') { - steps { - echo "Building docker image" - script { - dir('SessionCompanion/SessionCompanion'){ - def customImage = docker.build("session-companion:${env.BUILD_ID}") - //customImage.withRun('-p 5050:5050') - } - } - } - } - stage('Delete image') { - steps { - sh "docker rmi session-companion:${env.BUILD_ID}" + agent { + docker { image 'mcr.microsoft.com/dotnet/sdk:5.0' } + } + stages ('Build') { + steps { + dir('SessionCompanion/SessionCompanion') { + sh 'dotnet build' } } }