session-companion/Jenkinsfile

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-12-03 17:26:07 +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 {
2020-12-03 17:26:07 +01:00
agent {
2020-12-04 17:49:35 +01:00
docker {
2020-12-04 19:07:31 +01:00
image 'mcr.microsoft.com/dotnet/sdk:5.0'
2020-12-04 18:46:53 +01:00
}
2020-12-03 17:26:07 +01:00
}
2020-12-04 14:37:46 +01:00
environment {
2020-12-04 14:41:54 +01:00
DOTNET_CLI_HOME = '/tmp/App'
2020-12-04 14:37:46 +01:00
}
2020-12-03 17:28:14 +01:00
stages {
2020-12-04 19:23:20 +01:00
stage('Install node') {
2020-12-04 19:25:05 +01:00
steps {
sh 'apt install node'
}
2020-12-04 19:23:20 +01:00
}
2020-12-04 19:20:24 +01:00
stage('Build app') {
2020-12-03 17:28:14 +01:00
steps {
2020-12-03 17:30:56 +01:00
dir('SessionCompanion') {
2020-12-03 17:28:14 +01:00
sh 'dotnet build'
}
}
2020-12-02 19:17:49 +01:00
}
}
}