Jekins Builds

This commit is contained in:
Marco Santos
2024-11-18 16:41:45 +00:00
parent 5e85408338
commit ee25590835

33
Jenkinsfile vendored
View File

@@ -59,13 +59,42 @@ pipeline {
/******************************************************* /*******************************************************
Stage BUILD Stage BUILD
*******************************************************/ *******************************************************/
stage('Build Service DLL') { stage('Build DLL') {
steps { steps {
echo 'Building Business Logic DLL...'
dir("${env.SERVICE_DIR}") { dir("${env.SERVICE_DIR}") {
sh 'dotnet build -c Release' sh 'dotnet build -c Release'
} }
} }
} }
stage('Build Frontend') {
steps {
dir("${env.REACT_DIR}") {
sh 'npm install'
sh 'npm run build'
/* echo 'Building Docker image for React...'
sh """
docker build -t ${env.DOCKER_REGISTRY}/react-frontend:latest .
docker push ${env.DOCKER_REGISTRY}/react-frontend:latest
"""*/
}
}
}
stage('Build Webservice') {
steps {
dir("${env.API_DIR}") {
echo 'Building Webservice with ASP.NET Core...'
sh 'dotnet build -c Release'
/*echo 'Building Docker image for Webservice...'
sh """
docker build -t ${env.DOCKER_REGISTRY}/webservice:latest .
docker push ${env.DOCKER_REGISTRY}/webservice:latest
"""*/
}
}
}
} }
} }