SES-79 #3
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -18,11 +18,13 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
echo "Building docker image"
|
echo "Building docker image"
|
||||||
script {
|
script {
|
||||||
|
dir('SessionCompanion'){
|
||||||
def customImage = docker.build("session-companion:${env.BUILD_ID}")
|
def customImage = docker.build("session-companion:${env.BUILD_ID}")
|
||||||
customImage.withRun('-p 5050:5050')
|
customImage.withRun('-p 5050:5050')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Delete image') {
|
stage('Delete image') {
|
||||||
steps {
|
steps {
|
||||||
sh "docker rmi session-companion:${env.BUILD_ID}"
|
sh "docker rmi session-companion:${env.BUILD_ID}"
|
||||||
|
Loading…
Reference in New Issue
Block a user