araozu.dev/Jenkinsfile

27 lines
612 B
Plaintext
Raw Normal View History

2023-11-18 01:57:45 +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 deps') {
steps {
sh 'pnpm i'
}
}
stage('Build') {
environment {
PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
}
steps {
sh 'pnpm build'
}
}
stage('Deploy') {
steps {
sh 'cp -r ./dist/* /var/www/araozu.dev/'
}
}
}
}