43 lines
1.0 KiB
Groovy
43 lines
1.0 KiB
Groovy
//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 'mcr.microsoft.com/dotnet/sdk:5.0'
|
|
image '12.20.0-alpine3.9'
|
|
}
|
|
|
|
}
|
|
environment {
|
|
DOTNET_CLI_HOME = '/tmp/App'
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
dir('SessionCompanion') {
|
|
sh 'dotnet build'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|