Modify jenkinsfile for building tailwind (again)

This commit is contained in:
Araozu 2023-12-03 08:02:07 -05:00
parent ed9377156d
commit ff8bb8d911

View File

@ -15,12 +15,11 @@ pipeline {
sh './mvnw clean package' sh './mvnw clean package'
} }
} }
stage('Build frontend') { stage('Build tailwind') {
environment { environment {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.WORKSPACE}/node_modules/.bin:${env.PATH}" PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
} }
steps { steps {
sh 'cd frontend && npm install && npm run build'
dir("src/main/resources/frontend") { dir("src/main/resources/frontend") {
sh 'pnpm i' sh 'pnpm i'
sh 'pnpm build' sh 'pnpm build'