Merge pull request 'SES-81 Rozdzielenie back of front' (#23) from SES-81 into master

Reviewed-on: #23
This commit is contained in:
Łukasz Góreczny 2020-12-11 20:16:13 +01:00
commit 663b33e4a8

35
Jenkinsfile vendored
View File

@ -1,21 +1,34 @@
pipeline { pipeline {
agent any agent {
docker {
image 'kargor8/sess-comp-base:v2'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
stages { stages {
stage('Build image') { stage('Build app') {
steps { steps {
echo "Building docker image" dir('SessionCompanion') {
script { sh "echo $USER"
dir('SessionCompanion/SessionCompanion'){ withEnv(["HOME=${env.WORKSPACE}"]){
def customImage = docker.build("session-companion:${env.BUILD_ID}") dir ('SessionCompanion/ClientApp') {
//customImage.withRun('-p 5050:5050') sh 'npm cache clean --force'
sh 'npm install'
}
sh 'dotnet build'
} }
} }
} }
} }
stage('Delete image') { stage('Clear') {
steps { steps {
sh "docker rmi session-companion:${env.BUILD_ID}" withEnv(["HOME=${env.WORKSPACE}"]){
sh 'rm -rf .local'
}
} }
} }
} }
} }