master
Araozu 2023-10-26 21:01:33 -05:00
parent 0b7ea69e1f
commit 113505c65c
1 changed files with 14 additions and 1 deletions

View File

@ -1,10 +1,23 @@
pipeline { pipeline {
agent any agent any
environment {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:/var/lib/jenkins/bin:${env.PATH}"
}
stages { stages {
stage('Install') {
steps {
sh 'pnpm i'
}
}
stage('Build') {
steps {
sh 'pnpm build'
}
}
stage('Deploy') { stage('Deploy') {
steps { steps {
sh 'rm -rf /var/www/horarios-v2/*' sh 'rm -rf /var/www/horarios-v2/*'
sh 'cp -r ./* /var/www/horarios-v2/' sh 'cp -r ./dist/* /var/www/horarios-v2/'
} }
} }
} }