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