jenkinsfile

This commit is contained in:
Araozu 2023-10-26 21:50:39 -05:00
parent 3fd0baad96
commit 2d2c517299

24
Jenkinsfile.groovy Normal file
View File

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