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