Skip to content

Commit

Permalink
- updated jenkins pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
luisvent committed Mar 21, 2024
1 parent 9ee8138 commit 2fc9d21
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ pipeline {
pollSCM '*/5 * * * *'
}
stages {
stage('Dependencies') {
steps {
echo "Building.."
bat """
npm install
"""
}
}
stage('Test') {
steps {
echo "Testing.."
Expand Down Expand Up @@ -47,6 +39,15 @@ pipeline {
"""
}
}
stage('Deploy Api') {
steps {
echo 'Deliver....'
bat """
echo "doing delivery stuff.."
xcopy *.* "C:\\Sites\\chat_ai_api" /s /e /y
"""
}
}
stage('Deploy Web') {
steps {
echo 'Deliver....'
Expand All @@ -57,13 +58,12 @@ pipeline {
"""
}
}
stage('Deploy Api') {
stage('Dependencies') {
steps {
echo 'Deliver....'
echo "Building.."
bat """
echo "doing delivery stuff.."
cd ..
xcopy *.* "C:\\Sites\\chat_ai_api" /s /e /y
cd "C:\\Sites\\chat_ai_api"
npm install
"""
}
}
Expand All @@ -72,8 +72,8 @@ pipeline {
success {
echo "running.."
bat """
cd "site-path"
node app.js
REM cd "site-path"
REM node app.js
exit /b 0
"""
}
Expand Down

0 comments on commit 2fc9d21

Please sign in to comment.