session-companion/Jenkinsfile

33 lines
817 B
Plaintext
Raw Normal View History

2020-12-05 14:01:46 +01:00
pipeline {
agent {
docker {
image 'kargor8/sess-comp-base:v2'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
2020-12-05 14:01:46 +01:00
stages {
stage('Build app') {
2020-12-05 14:01:46 +01:00
steps {
dir('SessionCompanion') {
sh "echo $USER"
withEnv(["HOME=${env.WORKSPACE}"]){
2020-12-10 17:18:02 +01:00
dir ('SessionCompanion/ClientApp') {
sh 'npm install'
}
sh 'dotnet build'
2020-12-05 14:01:46 +01:00
}
}
}
2020-12-05 14:01:46 +01:00
}
2020-12-10 17:18:02 +01:00
stage('Clear') {
steps {
2020-12-10 17:18:02 +01:00
withEnv(["HOME=${env.WORKSPACE}"]){
sh 'rm -rf .local'
}
2020-12-05 14:01:46 +01:00
}
}
}
}