Add Small fix to Jenkinsfile

This commit is contained in:
Karol Górzyński 2020-12-02 19:43:47 +01:00
parent ddfb2bad7c
commit 23cc8a8df2

2
Jenkinsfile vendored
View File

@ -18,11 +18,13 @@ pipeline {
steps {
echo "Building docker image"
script {
dir('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}"