session-companion/Jenkinsfile

35 lines
877 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') {
2020-12-10 17:30:06 +01:00
sh 'npm cache clean --force'
2020-12-10 17:18:02 +01:00
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
}
}
}
}
2020-12-10 17:32:32 +01:00