2020-12-02 18:52:16 +01:00
|
|
|
pipeline {
|
|
|
|
def app
|
|
|
|
|
|
|
|
stage('Build image') {
|
|
|
|
checkout scm
|
2020-12-02 19:17:49 +01:00
|
|
|
dir('SessionCompanion') {
|
|
|
|
app = docker.build("session-companion:${env.BUILD_ID}")
|
|
|
|
}
|
2020-12-02 18:52:16 +01:00
|
|
|
}
|
|
|
|
stage('Build app') {
|
|
|
|
docker.image("session-companion:${env.BUILD_ID}").withRun(-p 8080:8080)
|
|
|
|
}
|
|
|
|
}
|