SES-79 #3

Merged
s426134 merged 10 commits from SES-79 into master 2020-12-02 20:39:22 +01:00
Showing only changes of commit ddfb2bad7c - Show all commits

33
Jenkinsfile vendored
View File

@ -1,13 +1,32 @@
//pipeline {
// stages {
// stage('Build image') {
// checkout scm
// dir('SessionCompanion') {
// docker.build("session-companion:${env.BUILD_ID}")
// }
// }
// stage('Build app') {
// docker.image("session-companion:${env.BUILD_ID}").withRun('-p 5050:5050')
// }
// }
//}
pipeline { pipeline {
stages { agent any
stages {
stage('Build image') { stage('Build image') {
checkout scm steps {
dir('SessionCompanion') { echo "Building docker image"
docker.build("session-companion:${env.BUILD_ID}") script {
} def customImage = docker.build("session-companion:${env.BUILD_ID}")
customImage.withRun('-p 5050:5050')
}
}
} }
stage('Build app') { stage('Delete image') {
docker.image("session-companion:${env.BUILD_ID}").withRun('-p 5050:5050') steps {
sh "docker rmi session-companion:${env.BUILD_ID}"
}
} }
} }
} }