Try custom image

This commit is contained in:
Karol Górzyński 2020-12-09 19:06:43 +01:00
parent fabf198f48
commit df3312e788

80
Jenkinsfile vendored
View File

@ -1,40 +1,40 @@
//pipeline {
// agent any
// stages {
// stage('Build image') {
// steps {
// echo "Building docker image"
// script {
// dir('SessionCompanion/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}"
// }
// }
// }
//}
pipeline {
agent {
docker {
image 'kargor8/dotnet_node:v1'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
stages {
stage('Build app') {
steps {
dir('SessionCompanion') {
sh 'dotnet build'
}
}
}
}
}
//pipeline {
// agent any
// stages {
// stage('Build image') {
// steps {
// echo "Building docker image"
// script {
// dir('SessionCompanion/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}"
// }
// }
// }
//}
pipeline {
agent {
docker {
image 'kargor8/dotnet_node:v1'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
stages {
stage('Build app') {
steps {
dir('SessionCompanion') {
sh 'dotnet build'
}
}
}
}
}