pseudosubs-v2/Jenkinsfile.groovy

24 lines
550 B
Groovy
Raw Normal View History

2023-10-28 12:13:07 +00:00
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/'
}
}
}
}