session-companion/Jenkinsfile

13 lines
291 B
Groovy

pipeline {
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')
}
}