2020-12-09 19:06:43 +01:00
|
|
|
//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 {
|
2020-12-09 19:27:21 +01:00
|
|
|
image 'kargor8/sess-comp-base:v2'
|
2020-12-09 19:06:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
DOTNET_CLI_HOME = '/tmp/App'
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build app') {
|
|
|
|
steps {
|
|
|
|
dir('SessionCompanion') {
|
2020-12-09 19:35:21 +01:00
|
|
|
sh "echo $USER"
|
2020-12-10 16:43:44 +01:00
|
|
|
withEnv(["HOME=${env.WORKSPACE}"]){
|
2020-12-10 16:40:13 +01:00
|
|
|
sh 'dotnet build'
|
|
|
|
}
|
2020-12-09 19:06:43 +01:00
|
|
|
}
|
|
|
|
}
|
2020-12-10 16:51:00 +01:00
|
|
|
steps('echo') {
|
|
|
|
sh "echo works"
|
|
|
|
}
|
2020-12-09 19:06:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|