pseudosubs-v2/Jenkinsfile.groovy
2023-10-28 07:13:07 -05:00

24 lines
550 B
Groovy

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/pseudosubs-v2/*'
sh 'cp -r ./dist/* /var/www/pseudosubs-v2/'
}
}
}
}