update jenkinsfile

This commit is contained in:
Araozu 2024-03-27 19:32:32 -05:00
parent b13030eaba
commit 34ea42e348

View File

@ -1,28 +1,26 @@
pipeline { pipeline {
agent any agent any
environment { environment {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:/var/lib/jenkins/bin:${env.PATH}" PATH = "/var/lib/jenkins/.bun/bin/:/var/lib/jenkins/bin:${env.PATH}"
} }
stages { stages {
stage('Test env') { stage('Install deps') {
steps { steps {
echo 'Testing...' sh 'bun i'
echo 'Is pnpm working?...'
sh 'pnpm --version'
} }
} }
stage('Install') { stage('Build tailwind') {
steps {
sh 'pnpm i'
}
}
stage('Build') {
environment { environment {
PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}" PATH = "${env.WORKSPACE}/node_modules/.bin:${env.PATH}"
} }
steps { steps {
sh 'md-docs' sh 'md-docs'
sh 'pnpm tailwind:build' sh 'bun tailwind:build'
}
}
stage('Build bundle') {
steps {
sh 'bun bundle'
} }
} }
stage('Deploy') { stage('Deploy') {