Merge branch 'master' into SES-87
This commit is contained in:
commit
e83bc3fa73
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@ -1,21 +1,34 @@
|
||||
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}"]){
|
||||
dir ('SessionCompanion/ClientApp') {
|
||||
sh 'npm cache clean --force'
|
||||
sh 'npm install'
|
||||
}
|
||||
sh 'dotnet build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Delete image') {
|
||||
steps {
|
||||
sh "docker rmi session-companion:${env.BUILD_ID}"
|
||||
stage('Clear') {
|
||||
steps {
|
||||
withEnv(["HOME=${env.WORKSPACE}"]){
|
||||
sh 'rm -rf .local'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user