Test new config
This commit is contained in:
parent
294372a2e6
commit
734368df68
44
Jenkinsfile
vendored
44
Jenkinsfile
vendored
@ -1,20 +1,32 @@
|
||||
//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 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}"
|
||||
agent {
|
||||
docker { image 'mcr.microsoft.com/dotnet/sdk:5.0' }
|
||||
}
|
||||
stages ('Build') {
|
||||
steps {
|
||||
dir('SessionCompanion/SessionCompanion') {
|
||||
sh 'dotnet build'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user