SES-81 Rozdzielenie back of front #23

Merged
s426134 merged 6 commits from SES-81 into master 2020-12-11 20:16:13 +01:00
Showing only changes of commit c96dd4f567 - Show all commits

26
Jenkinsfile vendored
View File

@ -1,20 +1,26 @@
pipeline {
agent any
agent {
docker {
image 'kargor8/sess-comp-base:v2'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
stages {
stage('Build image') {
stage('Build app') {
steps {
echo "Building docker image"
script {
dir('SessionCompanion/SessionCompanion'){
def customImage = docker.build("session-companion:${env.BUILD_ID}")
//customImage.withRun('-p 5050:5050')
dir('SessionCompanion') {
sh "echo $USER"
withEnv(["HOME=${env.WORKSPACE}"]){
sh 'dotnet build'
}
}
}
}
stage('Delete image') {
steps {
sh "docker rmi session-companion:${env.BUILD_ID}"
stage('Clarify') {
steps {
sh "echo Dziala"
}
}
}