Jenkins now lets build frontend and backend

This commit is contained in:
kargor8 2020-12-10 17:09:46 +01:00
parent 68200162da
commit c96dd4f567

26
Jenkinsfile vendored
View File

@ -1,20 +1,26 @@
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}") sh 'dotnet build'
//customImage.withRun('-p 5050:5050')
} }
} }
} }
} }
stage('Delete image') { stage('Clarify') {
steps { steps {
sh "docker rmi session-companion:${env.BUILD_ID}" sh "echo Dziala"
} }
} }
} }